class ConllSRLInstance(object): (source)
Constructor: ConllSRLInstance(tree, verb_head, verb_stem, roleset, tagged_spans)
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 |
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 |
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 |
Undocumented |
Instance Variable | words |
A list of the words in the sentence containing this instance. |
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].
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.
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').