Parsing Engine

Uses of Class
danbikel.parser.Word

Packages that use Word
danbikel.parser Provides the core framework of this extensible statistical parsing engine. 
danbikel.parser.arabic Provides language-specific classes necessary to parse Arabic. 
danbikel.parser.constraints Provides interfaces and classes to allow constrain-parsing. 
danbikel.parser.lang Provides default abstract base classes for the required interfaces of a language package. 
 

Uses of Word in danbikel.parser
 

Fields in danbikel.parser declared as Word
protected  Word CKYItem.headWord
          The head word of this chart item.
protected  Word Decoder.lookupWord
          A lookup Word object, for obtaining a canonical version.
protected  Word Decoder.startWord
          The value of Training.startWord(), cached here for efficiency and convenience.
protected  Word Trainer.startWord
          The value of Training.startWord().
protected static Word CKYItem.stopWord
          The value of Training.stopWord(), cached here for efficiency and convenience.
protected  Word Decoder.stopWord
          The value of Training.stopWord(), cached here for efficiency and convenience.
protected  Word DecoderServer.stopWord
          The value of Training.stopSym(), cached here for convenience.
protected  Word Trainer.stopWord
          The value of Training.stopWord().
 

Methods in danbikel.parser that return Word
 Word Word.copy()
          Returns a clone of this object.
 Word DefaultWordFactory.get(Sexp s)
           
 Word WordFactory.get(Sexp s)
          Constructs a Word object from the specified S-expression, which must be a list of length 2 or greater, where the first two elements are symbols.
static Word Words.get(Sexp s)
          Returns a new Word instance constructed from the specified S-expression.
 Word DefaultWordFactory.get(Symbol word, Symbol tag)
           
 Word WordFactory.get(Symbol word, Symbol tag)
          Constructs a Word object from the specified symbols.
static Word Words.get(Symbol word, Symbol tag)
          Returns a new Word instance constructed from the specified word and tag symbols.
 Word DefaultWordFactory.get(Symbol word, Symbol tag, Symbol features)
           
 Word WordFactory.get(Symbol word, Symbol tag, Symbol features)
          Constructs a Word object from the specified symbols.
static Word Words.get(Symbol word, Symbol tag, Symbol features)
          Returns a new Word instance constructed from the specified word, tag and feature-vector symbols.
protected  Word Decoder.getCanonicalWord(Word lookup)
          Gets the canonical Word object for the specified object.
 Word WordList.getWord(int index)
          Gets the Word object at the specified index.
 Word CKYItem.headWord()
          Returns the head word of this chart item.
 Word GapEvent.headWord()
          Returns the head word.
 Word HeadEvent.headWord()
          Returns the head word of this head event.
 Word HeadTreeNode.headWord()
          Gets the head word for this node.
 Word ModifierEvent.headWord()
          Returns the head word of the head child being modified.
 Word PriorEvent.headWord()
          Returns the head word of this event.
 Word TrainerEvent.headWord()
          Returns the head word object associated with an event, or null if this TrainerEvent has no such object.
 Word Treebank.makeWord(Sexp preterminal)
          Constructs a Word object from the specified preterminal subtree.
 Word GapEvent.modHeadWord()
          Returns null, as gap events do not deal with modifier words.
 Word HeadEvent.modHeadWord()
          Returns null, as head events do not deal with modifier words.
 Word ModifierEvent.modHeadWord()
          Returns the head word of the modifier of this modifier event.
 Word PriorEvent.modHeadWord()
          Returns null.
 Word TrainerEvent.modHeadWord()
          Returns the modifier head word object associated with an event, or null if this TrainerEvent has no such object.
 Word ModifierEvent.prevConj()
          Returns the previously-generated conjunction if this modifier is conjoined with the head of the phrase, or null if this modifier is not conjoined.
 Word ModifierEvent.prevPunc()
          Returns the previously-generated punctuation word if this modifier follows one, or null.
 Word Word.set(Symbol word, Symbol tag, Symbol features)
          Sets all three data members for this word.
 Word Training.startWord()
          Returns the Word object that represents the hidden "head word" of the start symbol.
 Word Training.stopWord()
          Returns the Word object that represents the hidden "head word" of the stop symbol.
 Word Training.topWord()
          Returns the Word object that represents the hidden "head word" of the hidden root of all parse trees.
 

Methods in danbikel.parser with parameters of type Word
protected  void Trainer.addToPosMap(Word word)
          Called by Trainer.collectStats(danbikel.lisp.Sexp, danbikel.parser.HeadTreeNode, boolean) and Trainer.alterLowFrequencyWords(HeadTreeNode).
 Sexp Treebank.constructPreterminal(Word word)
          Converts a Word object into a preterminal subtree.
protected  Word Decoder.getCanonicalWord(Word lookup)
          Gets the canonical Word object for the specified object.
 void CKYItem.set(Symbol label, Word headWord, Subcat leftSubcat, Subcat rightSubcat, CKYItem headChild, SLNode leftChildren, SLNode rightChildren, SexpList leftPrevMods, SexpList rightPrevMods, int start, int end, boolean leftVerb, boolean rightVerb, boolean stop, double logTreeProb, double logPrior, double logProb)
          Sets all of the data members of this chart item.
 void EMItem.set(Symbol label, Word headWord, Subcat leftSubcat, Subcat rightSubcat, CKYItem headChild, SLNode leftChildren, SLNode rightChildren, SexpList leftPrevMods, SexpList rightPrevMods, int start, int end, boolean leftVerb, boolean rightVerb, boolean stop, double logTreeProb, double logPrior, double logProb)
          This method simply throws an UnsupportedOperationException, as the log probabilities of the superclass are not used by this class.
 void EMItem.set(Symbol label, Word headWord, Subcat leftSubcat, Subcat rightSubcat, CKYItem headChild, SLNode leftChildren, SLNode rightChildren, SexpList leftPrevMods, SexpList rightPrevMods, int start, int end, boolean leftVerb, boolean rightVerb, boolean stop, int unaryLevel, double insideProb)
          Sets all the data for this EM chart item.
 void PriorEvent.set(Word headWord, Symbol label)
          Sets the head word and nonterminal label (all the data members) of this event.
 void GapEvent.setHeadWord(Word word)
           
 void HeadEvent.setHeadWord(Word headWord)
           
 void ModifierEvent.setHeadWord(Word headWord)
          Sets the head word of the head child and parent.
 void PriorEvent.setHeadWord(Word headWord)
          Sets the head word of this event.
 void TrainerEvent.setHeadWord(Word word)
          Sets the head word of this event, or does nothing if this TrainerEvent has no such object.
 void ModifierEvent.setModHeadWord(Word modHeadWord)
          Sets the head word of the modifier.
 void BaseNPAwareShifter.shift(TrainerEvent event, WordList wordList, Word prevWord)
          The head word of the previous modifier is not shifted into the history if the current parent (as determined by TrainerEvent.parent()) is a base NP and the previous modifier is punctuation.
 void DefaultShifter.shift(TrainerEvent event, WordList wordList, Word prevWord)
           
 void Shift.shift(TrainerEvent event, WordList wordList, Word prevWord)
          Shifts the previously-generated modifier head word into the history.
static void Shifter.shift(TrainerEvent event, WordList wordList, Word prevWord)
          Uses the internal Shifter instance to shift the newly-generated (and therefore previously-generated) head word into the history, which is a WordList.
static boolean Shifter.skip(CKYItem item, Word prevWord)
          Uses the internal Shifter instance to determine whether the specified modifier head word should be skipped when constructing a history for the specified chart item.
 boolean BaseNPAwareShifter.skip(Item item, Word prevWord)
          The head word of the previous modifier is skipped (not included in the construction of the history) ifthe current parent (as determined by CKYItem.label()) is a base NP and the previous modifier is punctuation.
 boolean DefaultShifter.skip(Item item, Word prevWord)
           
 boolean Shift.skip(Item item, Word prevWord)
          Returns whether the previously-generated modifier head word should be skipped when constructing a history for the specified chart item.
 

Constructors in danbikel.parser with parameters of type Word
CKYItem(Symbol label, Word headWord, Subcat leftSubcat, Subcat rightSubcat, CKYItem headChild, SLNode leftChildren, SLNode rightChildren, SexpList leftPrevMods, SexpList rightPrevMods, int start, int end, boolean leftVerb, boolean rightVerb, boolean stop, double logTreeProb, double logPrior, double logProb)
          Constructs a CKY chart item with the specified data.
GapEvent(Symbol direction, Word headWord, Symbol parent, Symbol head)
          Constructs a new GapEvent object, setting all its data members to the specified values.
HeadEvent(Word headWord, Symbol parent, Symbol head, SexpList leftSubcat, SexpList rightSubcat)
          Constructs a new HeadEvent object, setting all its data members to the specified values.
HeadEvent(Word headWord, Symbol parent, Symbol head, Subcat leftSubcat, Subcat rightSubcat)
          Constructs a new HeadEvent object, settings all its data members to the specified values.
ModifierEvent(Word modHeadWord, Word headWord, Symbol modifier, SexpList previousMods, WordList previousWords, Symbol parent, Symbol head, SexpList subcat, boolean verbIntervening, boolean side)
          Constructs a new ModifierEvent object, settings its data members to the values specified.
ModifierEvent(Word modHeadWord, Word headWord, Symbol modifier, SexpList previousMods, WordList previousWords, Symbol parent, Symbol head, Subcat subcat, boolean verbIntervening, boolean side)
          Constructs a new ModifierEvent object, settings its data members to the values specified.
ModifierEvent(Word modHeadWord, Word headWord, Symbol modifier, SexpList previousMods, WordList previousWords, Symbol parent, Symbol head, Subcat subcat, Word prevPunc, Word prevConj, boolean isConjPConj, boolean verbIntervening, boolean headAdjacent, boolean side)
          Constructs a new ModifierEvent object for use when outputting training events in the format of Mike Collins’ parser, settings its data members to the values specified.
PriorEvent(Word headWord, Symbol label)
          Constructs a new PriorEvent object, setting all its data members to the specified values.
 

Uses of Word in danbikel.parser.arabic
 

Methods in danbikel.parser.arabic that return Word
 Word Training.startWord()
          Returns the Word object that represents the hidden "head word" of the start symbol.
 Word Training.stopWord()
          Returns the Word object that represents the hidden "head word" of the stop symbol.
 Word Training.topWord()
          Returns the Word object that represents the hidden "head word" of the hidden root of all parse trees.
 

Methods in danbikel.parser.arabic with parameters of type Word
protected static Symbol TagMap.transformTag(Word word)
          Helper method used by Training.transformTags(Sexp).
protected  Symbol Training.transformTagOld(Word word)
          Deprecated. This method is the old mechanism by which to transform the part-of-speech tag associated with an Arabic word; it has been superseded by the method TagMap.transformTag(Word).
 

Uses of Word in danbikel.parser.constraints
 

Fields in danbikel.parser.constraints declared as Word
protected  Word LexTreeConstraint.headWord
          The head word associated with this constraint.
protected  Word PartialLexTreeConstraint.headWord
          The head word associated with this constraint.
 

Uses of Word in danbikel.parser.lang
 

Methods in danbikel.parser.lang that return Word
 Word AbstractTreebank.makeWord(Sexp preterminal)
          Constructs a Word object from the specified preterminal subtree.
 Word AbstractTraining.startWord()
          Returns the Word object that represents the hidden "head word" of the start symbol.
 Word AbstractTraining.stopWord()
          Returns the Word object that represents the hidden "head word" of the stop symbol.
 Word AbstractTraining.topWord()
          Returns the Word object that represents the hidden "head word" of the hidden root of all parse trees.
 

Methods in danbikel.parser.lang with parameters of type Word
 Sexp AbstractTreebank.constructPreterminal(Word word)
          Converts a Word object into a preterminal subtree.
 


Parsing Engine

Author: Dan Bikel.