class documentation

class ProbabilisticDependencyGrammar(object): (source)

Constructor: ProbabilisticDependencyGrammar(productions, events, tags)

View In Hierarchy

Method __init__ Undocumented
Method __repr__ Return a concise string representation of the ProbabilisticDependencyGrammar
Method __str__ Return a verbose string representation of the ProbabilisticDependencyGrammar
Method contains Return True if this DependencyGrammar contains a DependencyProduction mapping 'head' to 'mod'.
Instance Variable _events Undocumented
Instance Variable _productions Undocumented
Instance Variable _tags Undocumented
def __init__(self, productions, events, tags): (source)

Undocumented

def __repr__(self): (source)

Return a concise string representation of the ProbabilisticDependencyGrammar

def __str__(self): (source)

Return a verbose string representation of the ProbabilisticDependencyGrammar

Returns
strUndocumented
def contains(self, head, mod): (source)

Return True if this DependencyGrammar contains a DependencyProduction mapping 'head' to 'mod'.

Parameters
head:strA head word.
mod:strA mod word, to test as a modifier of 'head'.
Returns
boolUndocumented

Undocumented

_productions = (source)

Undocumented

Undocumented