class documentation
class NombankInstance(object): (source)
Constructor: NombankInstance(fileid, sentnum, wordnum, baseform, ...)
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 | baseform |
The baseform of the predicate. |
Instance Variable | fileid |
The name of the file containing the parse tree for this instance's sentence. |
Instance Variable | parse |
A corpus reader for the parse trees corresponding to the instances in this nombank corpus. |
Instance Variable | predicate |
A NombankTreePointer indicating the position of this instance's predicate within its containing sentence. |
Instance Variable | predid |
Identifier of the predicate. |
Instance Variable | sensenumber |
The sense number of the predicate. |
Instance Variable | sentnum |
The sentence number of this sentence within fileid. Indexing starts from zero. |
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 | roleset |
The name of the roleset used by this instance's predicate. Use nombank.roleset() <NombankCorpusReader.roleset> to look up information about the roleset. |
Method | _get |
Undocumented |
def __init__(self, fileid, sentnum, wordnum, baseform, sensenumber, predicate, predid, 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 NombankTreePointer indicating the position of this instance's predicate within its containing sentence.
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.