Class HeadFeaturedChartParser

java.lang.Object
  extended byBottomUpChartParser
      extended byAugmentedChartParser
          extended byHeadFeaturedChartParser
Direct Known Subclasses:
GapFeaturedChartParser

public class HeadFeaturedChartParser
extends AugmentedChartParser

This is the augmented bottom-up parser described in NLU Chapter 4, with the head feature convention applied to grammar rules. Since this difference only matters as the grammar rules are being added, the only code for this class is a different driver for loading the right kind of grammar (a HeadFeaturedGrammar, in fact).


Field Summary
 
Fields inherited from class BottomUpChartParser
agenda, categoryCounters, chart, grammar, inputLength, lexicon, nParsesFound, nParsesWanted, SYMBOL_S, tokenizer, tokens
 
Constructor Summary
HeadFeaturedChartParser()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Test the head-featured bottom-up chart parser.
 
Methods inherited from class AugmentedChartParser
extendArcWithEntry
 
Methods inherited from class BottomUpChartParser
addArcToChart, addEntryToChart, createEntryForCompletedArc, createEntryId, entryIsCompleteParse, extendArcsForEntry, fireRulesForEntry, initializeAgenda, initializeAgendaForWord, main, parse, parseDone, setGrammar, setLexicon, setNParsesWanted, setTokenizer, tokensAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadFeaturedChartParser

public HeadFeaturedChartParser()
Method Detail

main

public static void main(java.lang.String[] argv)
Test the head-featured bottom-up chart parser.