|
|
|
|
|
|
|
|
|
|
|
|
Create and run a recursive descent parser over both a syntactically ambiguous and unambiguous sentence.
|
|
|
|
(add-to-list 'font-lock-keywords expr))
font-lock-keywords
Create and run a shift reduce parser over both a syntactically ambiguous and unambiguous sentence. Note that unlike the recursive descent parser, one and only one parse is ever returned.
|
|
|
The shift reduce parser uses heuristics to decide what to do when there are multiple possible shift or reduce operations available - for the supplied grammar clearly the wrong operation is selected.
|
|
Define a grammar.
|
Some example sentences, one ambiguous and one unambiguous.
|
Create a chart parser. First give it a bottom-up strategy.
|
|
|
Redefine the chart parser to use a top-down strategy.
|
|
|
Create and test the Earley variant chart parser. This requires a lexicon.
|
|
|
|
|
|
|
Create a set of probabilistic CFG productions.
|
|
|
|
|
|
Induce some productions using parsed Treebank data.
|
|
|
|
Create several parsers using different queuing strategies and show the resulting parses.
|
|
|
|
|
|
|
Parse the tokenized sentence.
|
|
|
|
Define some grammatical productions.
|
Define some lexical productions.
|
|
|
|