class documentation

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_corpus 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_tree Undocumented
@staticmethod
def parse(s, parse_fileid_xform=None, parse_corpus=None): (source)

Undocumented

def __init__(self, fileid, sentnum, wordnum, tagger, roleset, inflection, predicate, arguments, parse_corpus=None): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

Undocumented

arguments = (source)

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.

The name of the file containing the parse tree for this instance's sentence.

inflection = (source)

A PropbankInflection object describing the inflection of this instance's predicate.

parse_corpus = (source)

A corpus reader for the parse trees corresponding to the instances in this propbank corpus.

predicate = (source)

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.

The sentence number of this sentence within fileid. Indexing starts from zero.

An identifier for the tagger who tagged this instance; or 'gold' if this is an adjuticated instance.

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 = (source)

The baseform of the predicate.

@property
predid = (source)

Identifier of the predicate.

@property
sensenumber = (source)

The sense number of the predicate.

def _get_tree(self): (source)

Undocumented