Package nltk :: Module grammar :: Class DependencyProduction
[hide private]
[frames] | no frames]

type DependencyProduction

source code

object --+    
         |    
Production --+
             |
            DependencyProduction

A dependency grammar production. Each production maps a single head word to an unordered list of one or more modifier words.

Instance Methods [hide private]
string
__str__(self)
Returns: A verbose string representation of the DependencyProduction.
source code

Inherited from Production: __cmp__, __eq__, __hash__, __init__, __len__, __ne__, __repr__, is_lexical, is_nonlexical, lhs, rhs

Instance Variables [hide private]

Inherited from Production (private): _lhs, _rhs

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 
Returns: string
A verbose string representation of the DependencyProduction.
Overrides: Production.__str__