class documentation
class PropbankInstance(object): (source)
Constructor: PropbankInstance(fileid, sentnum, wordnum, tagger, ...)
Undocumented
Static Method | parse |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Class Variable | tree |
Undocumented |
Instance Variable | arguments |
A list of tuples (argloc, argid), specifying the location and identifier for each of the predicate's argument in the containing sentence. Argument identifiers are strings such as 'ARG0' or 'ARGM-TMP'. ... |
Instance Variable | fileid |
The name of the file containing the parse tree for this instance's sentence. |
Instance Variable | inflection |
A PropbankInflection object describing the inflection of this instance's predicate. |
Instance Variable | parse |
A corpus reader for the parse trees corresponding to the instances in this propbank corpus. |
Instance Variable | predicate |
A PropbankTreePointer indicating the position of this instance's predicate within its containing sentence. |
Instance Variable | roleset |
The name of the roleset used by this instance's predicate. Use propbank.roleset() <PropbankCorpusReader.roleset> to look up information about the roleset. |
Instance Variable | sentnum |
The sentence number of this sentence within fileid. Indexing starts from zero. |
Instance Variable | tagger |
An identifier for the tagger who tagged this instance; or 'gold' if this is an adjuticated instance. |
Instance Variable | wordnum |
The word number of this instance's predicate within its containing sentence. Word numbers are indexed starting from zero, and include traces and other empty parse elements. |
Property | baseform |
The baseform of the predicate. |
Property | predid |
Identifier of the predicate. |
Property | sensenumber |
The sense number of the predicate. |
Method | _get |
Undocumented |
def __init__(self, fileid, sentnum, wordnum, tagger, roleset, inflection, predicate, arguments, parse_corpus=None):
(source)
¶
Undocumented
A list of tuples (argloc, argid), specifying the location and identifier for each of the predicate's argument in the containing sentence. Argument identifiers are strings such as 'ARG0' or 'ARGM-TMP'. This list does not contain the predicate.
A PropbankTreePointer indicating the position of this instance's predicate within its containing sentence.
The name of the roleset used by this instance's predicate. Use propbank.roleset() <PropbankCorpusReader.roleset> to look up information about the roleset.
An identifier for the tagger who tagged this instance; or 'gold' if this is an adjuticated instance.