Package nltk :: Package parse :: Module sr
[hide private]
[frames] | no frames]

Module sr

source code

Classes [hide private]
  ShiftReduceParser
A simple bottom-up CFG parser that uses two operations, "shift" and "reduce", to find a single parse for a text.
  SteppingShiftReduceParser
A ShiftReduceParser that allows you to setp through the parsing process, performing a single operation at a time.
Functions [hide private]
 
demo()
A demonstration of the shift-reduce parser.
source code