opennlp.grok.parse
Class Chart

java.lang.Object
  |
  +--opennlp.grok.parse.Chart

public class Chart
extends java.lang.Object

An implementation of the table (or chart) used for chart parsers like CKY. Special functions are provided for combining cells of the chart into another cell.

Version:
$Revision: 1.11 $, $Date: 2002/02/21 15:28:58 $
Author:
Gann Bierner

Field Summary
protected  int _size
           
protected  SignHash[][] _table
           
 
Constructor Summary
Chart(int s, opennlp.common.parse.RuleGroup _R)
           
 
Method Summary
 boolean insert(int x, int y, opennlp.common.synsem.Sign w, opennlp.common.synsem.Sign[] old)
           
protected  void insertCell(int x, int y)
           
protected  void insertCell(int x1, int y1, int x2, int y2, int x3, int y3)
           
protected  void insertEdge(int x, int y, opennlp.common.synsem.Sign[] signs)
           
 void printChart()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_table

protected SignHash[][] _table

_size

protected int _size
Constructor Detail

Chart

public Chart(int s,
             opennlp.common.parse.RuleGroup _R)
Method Detail

insert

public boolean insert(int x,
                      int y,
                      opennlp.common.synsem.Sign w,
                      opennlp.common.synsem.Sign[] old)

insertEdge

protected void insertEdge(int x,
                          int y,
                          opennlp.common.synsem.Sign[] signs)

insertCell

protected void insertCell(int x,
                          int y)

insertCell

protected void insertCell(int x1,
                          int y1,
                          int x2,
                          int y2,
                          int x3,
                          int y3)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

printChart

public void printChart()


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.