Package parser_course :: Package small_parsers :: Module simple_earley_parser_with_print
[hide private]
[frames] | no frames]

Module simple_earley_parser_with_print

source code

Classes [hide private]
  EarleyParser
Recognize strings in self.data using Earley's algorithm.
  chart_edge_info
Basic chart edge data structure.
Variables [hide private]
  g1 = toy_grammar()
  p1 = EarleyParser(g1)
  g2 = not_so_toy_grammar()
  p2 = EarleyParser(g2)
  i2 = 'the agency sees widespread use of the codes as a way of ...
  i3 = 'the agency sees use of the codes as a way'
  e3 = chart_edge_info('s', [], 'gamma', 0)
Variables Details [hide private]

i2

Value:
'the agency sees widespread use of the codes as a way of handling the \
rapidly growing mail volume and controlling labor costs'