Parsing Engine

danbikel.parser.ms
Class RightSubcatModelStructure1

java.lang.Object
  extended by danbikel.parser.ProbabilityStructure
      extended by danbikel.parser.ms.SubcatModelStructure1
          extended by danbikel.parser.ms.RightSubcatModelStructure1
All Implemented Interfaces:
Serializable

public class RightSubcatModelStructure1
extends SubcatModelStructure1

Representation of the complete back-off structure of the subcat-generation model for the right side of the head child.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class danbikel.parser.ProbabilityStructure
additionalData, defaultModelClassName, defaultModelConstructor, doPruning, estimates, futureList, futures, futuresWithSubcats, histories, historiesWithSubcats, historyList, lambdas, prevHistCount, topLevelCacheSize, transitions
 
Constructor Summary
RightSubcatModelStructure1()
           
 
Method Summary
 ProbabilityStructure copy()
          Returns a deep copy of this object.
 Event getFuture(TrainerEvent trainerEvent, int backOffLevel)
          Extracts the future for the specified level of back-off from the specified trainer event.
 
Methods inherited from class danbikel.parser.ms.SubcatModelStructure1
getHistory, lambdaFudge, lambdaFudgeTerm, maxEventComponents, numLevels
 
Methods inherited from class danbikel.parser.ProbabilityStructure
cacheSize, defaultSmoothingParamsFilename, doCleanup, dontAddNewParameters, doPruning, getAdditionalData, getTopLevelCacheSize, getTransition, jointModel, lambdaPenalty, newModel, priorLevel, removeFuture, removeHistory, removeTransition, saveSmoothingParameters, setAdditionalData, smoothingParametersFile, useSmoothingParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RightSubcatModelStructure1

public RightSubcatModelStructure1()
Method Detail

getFuture

public Event getFuture(TrainerEvent trainerEvent,
                       int backOffLevel)
Description copied from class: ProbabilityStructure
Extracts the future for the specified level of back-off from the specified trainer event. Typically, futures remain the same regardless of back-off level.

Specified by:
getFuture in class ProbabilityStructure
Parameters:
trainerEvent - the event from which a future is to be extracted
backOffLevel - the back-off level for which to get the future event
Returns:
an Event object that represents the future for the specified back-off level

copy

public ProbabilityStructure copy()
Description copied from class: ProbabilityStructure
Returns a deep copy of this object. Currently, all data members of ProbabilityStructure objects are used solely as temporary storage during certain method invocations; therefore, this copy method should simply return a new instance of the runtime type of this ProbabilityStructure object, with freshly-created data members that are not deep copies of the data members of this object. The general contract of the copy method is slightly violated here, but without undue harm, given the lack of persistent data of these types of objects. If a concrete subclass has specific requirements for its data members to be deeply copied, this method should be overridden.

Specified by:
copy in class ProbabilityStructure

Parsing Engine

Author: Dan Bikel.