Parsing Engine

Uses of Interface
danbikel.parser.TrainerEvent

Packages that use TrainerEvent
danbikel.parser Provides the core framework of this extensible statistical parsing engine. 
danbikel.parser.ms Default package for model structure classes (subclasses of ProbabilityStructure). 
danbikel.parser.util Utility classes for displaying and manipulating parse trees. 
 

Uses of TrainerEvent in danbikel.parser
 

Classes in danbikel.parser that implement TrainerEvent
 class GapEvent
          A class to represent the gap generation event implicit in the models supported by this parsing package.
 class HeadEvent
          A class to represent the head generation event implicit in the models supported by this parsing package.
 class ModifierEvent
          A class to represent the modifier generation event implicit in the models supported by this parsing package.
 class PriorEvent
          A class to represent the marginal probabilities of lexicalized nonterminals (loosely, if incorrectly, referred to as “prior probabilities”).
 

Fields in danbikel.parser declared as TrainerEvent
protected  TrainerEvent Trainer.EventEntry.event
          The TrainerEvent object contained by this map entry.
 

Methods in danbikel.parser that return TrainerEvent
 TrainerEvent GapEvent.copy()
          Returns a deep copy of this object.
 TrainerEvent HeadEvent.copy()
          Returns a deep copy of this object.
 TrainerEvent ModifierEvent.copy()
          Returns a deep copy of this object.
 TrainerEvent PriorEvent.copy()
          Returns a deep copy of this object.
 TrainerEvent TrainerEvent.copy()
          Returns a deep copy of this event of the same run-time type.
 TrainerEvent GapEvent.shallowCopy()
           
 TrainerEvent HeadEvent.shallowCopy()
           
 TrainerEvent ModifierEvent.shallowCopy()
          Returns a shallow copy of this event.
 TrainerEvent PriorEvent.shallowCopy()
          Returns a shallow copy of this object.
 TrainerEvent TrainerEvent.shallowCopy()
          Returns a shallow copy of this event of the same run-time type.
 

Methods in danbikel.parser with parameters of type TrainerEvent
 boolean EMChart.add(int start, int end, EMItem item, EMItem ante1, EMItem ante2, TrainerEvent[] events, double[] probs)
          Adds this item to the chart, recording its antecedents and the events and their probabilities that allowed this item (consequent) to be produced.
 boolean EMChart.add(int start, int end, EMItem item, EMItem ante1, EMItem ante2, TrainerEvent event, double prob)
          Adds this item to the chart, recording its antecedents and the events and their probabilities that allowed this item (consequent) to be produced.
protected  void EMDecoder.addSynthesizedTopModEvent(TrainerEvent event, double expectedCount, CountsTable counts)
          Adds an event as though a tree's non-hidden root is a modifier of +TOP+ (in addition to being a head child).
 double JointModel.estimateLogProb(int id, TrainerEvent event)
          Estimates a conditional probability in log-space from the specified maximal-context trainer event.
 double Model.estimateLogProb(int id, TrainerEvent event)
          Estimates the log-probability of a conditional event.
protected  double Model.estimateLogProbUsingPrecomputed(ProbabilityStructure structure, TrainerEvent event)
          Estimates the log prob using precomputed probabilities and smoothing values (lambdas).
 double JointModel.estimateNonJointLogProb(int id, TrainerEvent event)
          Estimates the log-probability of the specified event under this Model without adding the log-probabilities of the internal Model objects.
 double JointModel.estimateNonJointProb(int id, TrainerEvent event)
          Estimates the probability of the specified event under this Model without multiplying the probabilities of the internal Model objects.
 double JointModel.estimateProb(int id, TrainerEvent event)
          Estimates a conditional probability from the specified maximal-context trainer event.
 double Model.estimateProb(int id, TrainerEvent event)
          Estimates the probability of a conditional event.
protected  double InterpolatedKnesserNeyModel.estimateProb(ProbabilityStructure probStructure, TrainerEvent event)
          Returns the smoothed probability estimate of a transition contained in the specified TrainerEvent object.
protected  double Model.estimateProb(ProbabilityStructure probStructure, TrainerEvent event)
          Returns the smoothed probability estimate of a transition contained in the specified TrainerEvent object.
protected  double Model.estimateProbOld(ProbabilityStructure structure, TrainerEvent event, int level, double prevHistCount)
           
abstract  Event ProbabilityStructure.getFuture(TrainerEvent trainerEvent, int backOffLevel)
          Extracts the future for the specified level of back-off from the specified trainer event.
abstract  Event ProbabilityStructure.getHistory(TrainerEvent trainerEvent, int backOffLevel)
          Extracts the history context for the specified back-off level from the specified trainer event.
 Transition ProbabilityStructure.getTransition(TrainerEvent trainerEvent, int backOffLevel)
          Returns the reusable transition object for the specified back-off level, with its history set to the result of calling getHistory(trainerEvent, backOffLevel) and its future the result of getFuture(trainerEvent, backOffLevel).
 double CachingDecoderServer.logPrior(int id, TrainerEvent event)
          Returns the prior probability of generating the nonterminal contained in the specified HeadEvent.
 double DecoderServer.logPrior(int id, TrainerEvent event)
          Returns the prior probability for the lexicalized nonteminal encoded in the specified TrainerEvent, which should be an instance of HeadEvent.
 double DecoderServerRemote.logPrior(int id, TrainerEvent event)
          Returns the prior probability of generating the nonterminal contained in the specified HeadEvent.
 double CachingDecoderServer.logProbGap(int id, TrainerEvent event)
          Returns the log of the probability of generating a gap.
 double DecoderServer.logProbGap(int id, TrainerEvent event)
           
 double DecoderServerRemote.logProbGap(int id, TrainerEvent event)
          Returns the log of the probability of generating a gap.
 double CachingDecoderServer.logProbHead(int id, TrainerEvent event)
           
 double DecoderServer.logProbHead(int id, TrainerEvent event)
           
 double DecoderServerRemote.logProbHead(int id, TrainerEvent event)
          Returns the log of the probability of generating a head child in the context of a particular parent (both the head to be generated and the parent are contained in the specified TrainerEvent object).
 double CachingDecoderServer.logProbHeadWithSubcats(int id, TrainerEvent event)
          Returns the log of the probability of generating a new head and its left and right subcat frames.
 double DecoderServer.logProbHeadWithSubcats(int id, TrainerEvent event)
           
 double DecoderServerRemote.logProbHeadWithSubcats(int id, TrainerEvent event)
          Returns the log of the probability of generating a new head and its left and right subcat frames.
 double CachingDecoderServer.logProbLeftSubcat(int id, TrainerEvent event)
           
 double DecoderServer.logProbLeftSubcat(int id, TrainerEvent event)
           
 double DecoderServerRemote.logProbLeftSubcat(int id, TrainerEvent event)
          Returns the log of the probability of generating a left subcat in the context of a particular parent and head (the subcat to be generated, the head and parent are all contained in the specified TrainerEvent object).
 double CachingDecoderServer.logProbMod(int id, TrainerEvent event)
           
 double DecoderServer.logProbMod(int id, TrainerEvent event)
           
 double DecoderServerRemote.logProbMod(int id, TrainerEvent event)
          Returns the log of the probability of generating a fully-lexicalized modifying nonterminal given a particular parent, head and other components of the syntactic context.
 double CachingDecoderServer.logProbModNT(int id, TrainerEvent event)
           
 double DecoderServer.logProbModNT(int id, TrainerEvent event)
           
 double DecoderServerRemote.logProbModNT(int id, TrainerEvent event)
          Returns the log of the probability of generating a partially-lexicalized modifying nonterminal given a particular parent, head and other components of the syntactic context.
 double CachingDecoderServer.logProbRightSubcat(int id, TrainerEvent event)
           
 double DecoderServer.logProbRightSubcat(int id, TrainerEvent event)
           
 double DecoderServerRemote.logProbRightSubcat(int id, TrainerEvent event)
          Returns the log of the probability of generating a right subcat in the context of a particular parent and head (the subcat to be generated, the head and parent are all contained in the specified TrainerEvent object).
 double CachingDecoderServer.logProbSubcat(int id, TrainerEvent event, boolean side)
           
 double DecoderServer.logProbSubcat(int id, TrainerEvent event, boolean side)
           
 double DecoderServerRemote.logProbSubcat(int id, TrainerEvent event, boolean side)
          Invokes DecoderServerRemote.logProbLeftSubcat(int, TrainerEvent) or DecoderServerRemote.logProbRightSubcat(int, TrainerEvent) depending on the value of side.
 double CachingDecoderServer.logProbTop(int id, TrainerEvent event)
          Returns the log of the probability of generating the head nonterminal of an entire sentence.
 double DecoderServer.logProbTop(int id, TrainerEvent event)
           
 double DecoderServerRemote.logProbTop(int id, TrainerEvent event)
          Returns the log of the probability of generating the head nonterminal of an entire sentence.
protected  void InterpolatedKnesserNeyModel.precomputeProbs(TrainerEvent event, Transition[] transitions, Event[] histories)
          Deprecated. This method is called by Model.precomputeProbs(CountsTable,Filter), which is also deprecated.
protected  void Model.precomputeProbs(TrainerEvent event, Transition[] transitions, Event[] histories)
          Deprecated. This method is called by Model.precomputeProbs(CountsTable,Filter), which is also deprecated.
 double CachingDecoderServer.probHead(int id, TrainerEvent event)
           
 double DecoderServer.probHead(int id, TrainerEvent event)
           
 double DecoderServerRemote.probHead(int id, TrainerEvent event)
          Returns the probability of generating a head child in the context of a particular parent (both the head to be generated and the parent are contained in the specified TrainerEvent object).
 double CachingDecoderServer.probLeftSubcat(int id, TrainerEvent event)
           
 double DecoderServer.probLeftSubcat(int id, TrainerEvent event)
           
 double DecoderServerRemote.probLeftSubcat(int id, TrainerEvent event)
          Returns the probability of generating a left subcat in the context of a particular parent and head (the subcat to be generated, the head and parent are all contained in the specified TrainerEvent object).
 double CachingDecoderServer.probMod(int id, TrainerEvent event)
           
 double DecoderServer.probMod(int id, TrainerEvent event)
           
 double DecoderServerRemote.probMod(int id, TrainerEvent event)
          Returns the probability of generating a fully-lexicalized modifying nonterminal given a particular parent, head and other components of the syntactic context.
 double CachingDecoderServer.probRightSubcat(int id, TrainerEvent event)
           
 double DecoderServer.probRightSubcat(int id, TrainerEvent event)
           
 double DecoderServerRemote.probRightSubcat(int id, TrainerEvent event)
          Returns the probability of generating a right subcat in the context of a particular parent and head (the subcat to be generated, the head and parent are all contained in the specified TrainerEvent object).
 double CachingDecoderServer.probTop(int id, TrainerEvent event)
           
 double DecoderServer.probTop(int id, TrainerEvent event)
           
 double DecoderServerRemote.probTop(int id, TrainerEvent event)
          Returns the probability of generating the head nonterminal of an entire sentence.
protected  void CachingDecoderServer.putInCache(TrainerEvent key, double value)
          Inserts the specified TrainerEvent and its associated probability into this object's probability cache.
 void BaseNPAwareShifter.shift(TrainerEvent event, SexpList list, Sexp prevMod)
          The previous modifier is not shifted into the history if the current parent (as determined by parent()) is a base NP and the previous modifier is punctuation.
 void DefaultShifter.shift(TrainerEvent event, SexpList list, Sexp prevMod)
           
 void Shift.shift(TrainerEvent event, SexpList list, Sexp prevMod)
          Shifts the previously-generated modifier label into the history.
static void Shifter.shift(TrainerEvent event, SexpList list, Sexp prevMod)
          Uses the internal Shifter instance to shift the newly-generated (and therefore previously-generated) modifier into the history, which is a SexpList.
 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 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.
 

Constructors in danbikel.parser with parameters of type TrainerEvent
Trainer.EventEntry(TrainerEvent event, double count)
          Constructs a new EventEntry instance with the specified TrainerEvent and count.
 

Uses of TrainerEvent in danbikel.parser.ms
 

Methods in danbikel.parser.ms with parameters of type TrainerEvent
 Event BrokenLeftSubcatModelStructure.getFuture(TrainerEvent trainerEvent, int backOffLevel)
          Gets the future being predicted conditioning on this subcat event.
 Event BrokenLexPriorModelStructure.getFuture(TrainerEvent trainerEvent, int backOffLevel)
          Returns an event whose two components are the word and part-of-speech for which a marginal probability is being computed.
 Event BrokenModWordModelStructure.getFuture(TrainerEvent trainerEvent, int backOffLevel)
          Returns an event whose sole component is the word being generated as the head of some modifier nonterminal.
 Event BrokenRightSubcatModelStructure.getFuture(TrainerEvent trainerEvent, int backOffLevel)
          Gets the future being predicted conditioning on this subcat event.
 Event BrokenTopLexModelStructure.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event GapModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event HeadModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event LeftSubcatModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event LeftSubcatModelStructure2.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event LexPriorModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure2.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure3.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure4.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure5.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure6.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure7.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure8.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure9.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure2.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure3.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure4.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure5.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure6.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure7.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure8.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure9.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event NonterminalPriorModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event RightSubcatModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event RightSubcatModelStructure2.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event TagModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event TagModelStructure2.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event TopLexModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event TopNonterminalModelStructure1.getFuture(TrainerEvent trainerEvent, int backOffLevel)
           
 Event BrokenLexPriorModelStructure.getHistory(TrainerEvent trainerEvent, int backOffLevel)
          As this model simulates unconditional probabilities using relative-frequency estimation, this method returns a history whose sole component is a dummy object that is the same regardless of the “future” being estimated.
 Event BrokenModWordModelStructure.getHistory(TrainerEvent trainerEvent, int backOffLevel)
          Returns the history event corresponding to the specified back-off level.
 Event BrokenTopLexModelStructure.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event GapModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event HeadModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event LexPriorModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure2.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure3.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure4.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure6.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure7.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure8.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModNonterminalModelStructure9.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure2.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure3.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure4.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure5.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure6.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure7.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure8.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event ModWordModelStructure9.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event NonterminalPriorModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event SubcatModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
          Returns a history for the specified back-off level, according to the following zero-indexed list of history events.
 Event SubcatModelStructure2.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event TagModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event TagModelStructure2.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event TopLexModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 Event TopNonterminalModelStructure1.getHistory(TrainerEvent trainerEvent, int backOffLevel)
           
 

Uses of TrainerEvent in danbikel.parser.util
 

Methods in danbikel.parser.util with parameters of type TrainerEvent
static String TrainerEventToCollins.trainerEventToCollins(TrainerEvent event)
           
 


Parsing Engine

Author: Dan Bikel.