class documentation

class ChartCell(object): (source)

Constructor: ChartCell(x, y)

View In Hierarchy

A cell from the parse chart formed when performing the CYK algorithm. Each cell keeps track of its x and y coordinates (though this will probably be discarded), and a list of spans serving as the cell's entries.

Method __init__ No summary
Method __repr__ No summary
Method __str__ No summary
Method add Appends the given span to the list of spans representing the chart cell's entries.
Instance Variable _entries Undocumented
Instance Variable _x Undocumented
Instance Variable _y Undocumented
def __init__(self, x, y): (source)
Parameters
x:int.This cell's x coordinate.
y:int.This cell's y coordinate.
def __repr__(self): (source)
Returns
str.A concise string representation of this ChartCell.
def __str__(self): (source)
Returns
str.A verbose string representation of this ChartCell.
def add(self, span): (source)

Appends the given span to the list of spans representing the chart cell's entries.

Parameters
span:DependencySpanThe span to add.
_entries = (source)

Undocumented

Undocumented

Undocumented