nltk.DependencyGrammar
¶
-
class
nltk.
DependencyGrammar
(productions)[source]¶ A dependency grammar. A DependencyGrammar consists of a set of productions. Each production specifies a head/modifier relationship between a pair of words.
Methods¶
__init__ (productions) |
Create a new dependency grammar, from the set of Productions . |
||
contains (head, mod) |
|
||
fromstring (input) |
|||
unicode_repr () |
Return a concise string representation of the DependencyGrammar |