An edge that records the fact that a leaf value is consistent with a
word in the sentence. A leaf edge consists of:
|
|
|
lhs(self)
Returns:
This edge's left-hand side, which specifies what kind of structure is
hypothesized by this edge. |
source code
|
|
(int, int)
|
span(self)
Returns:
A tuple (s,e) , where subtokens[s:e] is the
portion of the sentence that is consistent with this edge's
structure. |
source code
|
|
int
|
|
int
|
|
int
|
|
|
rhs(self)
Returns:
This edge's right-hand side, which specifies the content of the
structure hypothesized by this edge. |
source code
|
|
int
|
dot(self)
Returns:
This edge's dot position, which indicates how much of the
hypothesized structure is consistent with the sentence. |
source code
|
|
boolean
|
|
boolean
|
|
Nonterminal or terminal or None
|
next(self)
Returns:
The element of this edge's right-hand side that immediately follows
its dot. |
source code
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|