class documentation
class DependencySpan(object): (source)
Constructor: DependencySpan(start_index, end_index, head_index, arcs, tags)
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.
Method | __eq__ |
Undocumented |
Method | __hash__ |
No summary |
Method | __init__ |
Undocumented |
Method | __lt__ |
Undocumented |
Method | __ne__ |
Undocumented |
Method | __repr__ |
No summary |
Method | __str__ |
No summary |
Method | head |
No summary |
Instance Variable | _arcs |
Undocumented |
Instance Variable | _comparison |
Undocumented |
Instance Variable | _end |
Undocumented |
Instance Variable | _hash |
Undocumented |
Instance Variable | _head |
Undocumented |
Instance Variable | _start |
Undocumented |
Instance Variable | _tags |
Undocumented |