class documentation

An SRL instance from a CoNLL corpus, which identifies and providing labels for the arguments of a single verb.

Method __init__ Undocumented
Method __repr__ Undocumented
Method pprint Undocumented
Instance Variable arguments A list of (argspan, argid) tuples, specifying the location and type for each of the arguments identified by this instance. argspan is a tuple start, end, indicating that the argument consists of the words[start:end]...
Instance Variable roleset Undocumented
Instance Variable tagged_spans A list of (span, id) tuples, specifying the location and type for each of the arguments, as well as the verb pieces, that make up this instance.
Instance Variable tree The parse tree for the sentence containing this instance.
Instance Variable verb A list of the word indices of the words that compose the verb whose arguments are identified by this instance. This will contain multiple word indices when multi-word verbs are used (e.g. 'turn on').
Instance Variable verb_head The word index of the head word of the verb whose arguments are identified by this instance. E.g., for a sentence that uses the verb 'turn on,' verb_head will be the word index of the word 'turn'.
Instance Variable verb_stem Undocumented
Instance Variable words A list of the words in the sentence containing this instance.
def __init__(self, tree, verb_head, verb_stem, roleset, tagged_spans): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def pprint(self): (source)

Undocumented

arguments: list = (source)

A list of (argspan, argid) tuples, specifying the location and type for each of the arguments identified by this instance. argspan is a tuple start, end, indicating that the argument consists of the words[start:end].

Undocumented

tagged_spans = (source)

A list of (span, id) tuples, specifying the location and type for each of the arguments, as well as the verb pieces, that make up this instance.

The parse tree for the sentence containing this instance.

verb: list = (source)

A list of the word indices of the words that compose the verb whose arguments are identified by this instance. This will contain multiple word indices when multi-word verbs are used (e.g. 'turn on').

verb_head = (source)

The word index of the head word of the verb whose arguments are identified by this instance. E.g., for a sentence that uses the verb 'turn on,' verb_head will be the word index of the word 'turn'.

verb_stem = (source)

Undocumented

A list of the words in the sentence containing this instance.