A contiguous span over some part of the input string representing
dependency (head -> modifier) relationships amongst words. An atomic
span corresponds to only one word so it isn't a 'span' in the
conventional sense, as its _start_index = _end_index = _head_index for
concatenation purposes. All other spans are assumed to have arcs between
all nodes within the start and end indexes of the span, and one head
index corresponding to the head word for the entire span. This is the
same as the root node if the dependency structure were depicted as a
graph.
|
|
|
int.
|
|
string.
|
|
string.
|
|
boolean.
|
__eq__(self,
other)
Returns:
true if this DependencySpan is equal to
other. |
source code
|
|
boolean
|
__ne__(self,
other)
Returns:
false if this DependencySpan is equal to
other |
source code
|
|
int
|
|
|
|
|