A dependency grammar. A DependencyGrammar consists of a set of
productions. Each production specifies a head/modifier relationship
between a pair of words.
|
|
__init__(self,
productions)
Create a new dependency grammar, from the set of
Productions. |
source code
|
|
boolean.
|
contains(self,
head,
mod)
Returns:
true if this DependencyGrammar contains a
DependencyProduction mapping 'head' to 'mod'. |
source code
|
|
boolean.
|
__contains__(self,
head,
mod)
Returns:
true if this DependencyGrammar contains a
DependencyProduction mapping 'head' to 'mod'. |
source code
|
|
string
|
__str__(self)
Returns:
A verbose string representation of the DependencyGrammar |
source code
|
|
|
|
|