def parse_with_bindops(sentence, grammar=None, trace=0):
 if (not grammar):
  grammar = 'grammars/book_grammars/storage.fcfg'
 parser = load_parser(grammar, trace=trace, chart_class=InstantiateVarsChart)
 tokens = sentence.split()
 return list(parser.parse(tokens))

def parse_with_bindops ( sentence , grammar = None , trace = 0 ) : if ( not grammar ) : grammar = 'grammars/book_grammars/storage.fcfg' parser = load_parser ( grammar , trace = trace , chart_class = InstantiateVarsChart ) tokens = sentence . split ( ) return list ( parser . parse ( tokens ) )
use a grammar with binding operators to parse a sentence .