| Method Summary |
| |
__init__(self,
leaf,
index)
Construct a new LeafEdge. |
| |
__cmp__(self,
other)
|
| |
__hash__(self)
|
| |
__repr__(self)
|
| |
__str__(self)
|
int
|
dot(self)
Return this edge's dot position, which indicates how much of the hypothesized
structure is consistent with the sentence. |
int
|
end(self)
Return the end index of this edge's span. |
boolean
|
is_complete(self)
Return true if this edge's structure is fully consistent with the text. |
boolean
|
is_incomplete(self)
Return true if this edge's structure is partially consistent with the
text. |
int
|
length(self)
Return the length of this edge's span. |
| |
lhs(self)
Return this edge's left-hand side, which specifies what kind of structure is
hypothesized by this edge. |
Nonterminal or terminal or None
|
next(self)
Return the element of this edge's right-hand side that immediately follows
its dot. |
| |
rhs(self)
Return this edge's right-hand side, which specifies the content of the
structure hypothesized by this edge. |
(int, int)
|
span(self)
Return a tuple (s,e), where subtokens[s:e] is the
portion of the sentence that is consistent with this edge's
structure. |
int
|
start(self)
Return the start index of this edge's span. |
Inherited from object:
__delattr__,
__getattribute__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|