NLTK Documentation
Installation
More
Bases: object
object
Return True if this DependencyGrammar contains a DependencyProduction mapping ‘head’ to ‘mod’.
DependencyGrammar
DependencyProduction
head (str) – A head word.
mod (str) – A mod word, to test as a modifier of ‘head’.
bool