class documentation

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_index No summary
Instance Variable _arcs Undocumented
Instance Variable _comparison_key Undocumented
Instance Variable _end_index Undocumented
Instance Variable _hash Undocumented
Instance Variable _head_index Undocumented
Instance Variable _start_index Undocumented
Instance Variable _tags Undocumented
def __eq__(self, other): (source)

Undocumented

def __hash__(self): (source)
Returns
The hash value of this DependencySpan.
def __init__(self, start_index, end_index, head_index, arcs, tags): (source)

Undocumented

def __lt__(self, other): (source)

Undocumented

def __ne__(self, other): (source)

Undocumented

def __repr__(self): (source)
Returns
str.A concise string representatino of the DependencySpan.
def __str__(self): (source)
Returns
strA verbose string representation of the DependencySpan.
def head_index(self): (source)
Returns
intAn value indexing the head of the entire DependencySpan.

Undocumented

_comparison_key = (source)

Undocumented

_end_index = (source)

Undocumented

Undocumented

_head_index = (source)

Undocumented

_start_index = (source)

Undocumented

Undocumented