def dg_demo():
 grammar = DependencyGrammar.fromstring(u"\n    'scratch' -> 'cats' | 'walls'\n    'walls' -> 'the'\n    'cats' -> 'the'\n    ")
 print(grammar)

def dg_demo ( ) : grammar = DependencyGrammar . fromstring ( u"\n    'scratch' -> 'cats' | 'walls'\n    'walls' -> 'the'\n    'cats' -> 'the'\n    " ) print ( grammar )
a demonstration showing the creation and inspection of a dependencygrammar .