|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.parser.ProbabilityStructure
danbikel.parser.ms.SubcatModelStructure2
public abstract class SubcatModelStructure2
Representation of the complete back-off structure of the subcat-generation model for either side of the head child.
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 | |
---|---|
protected |
SubcatModelStructure2()
|
Method Summary | |
---|---|
Event |
getHistory(TrainerEvent trainerEvent,
int backOffLevel)
Extracts the history context for the specified back-off level from the specified trainer event. |
double |
lambdaFudge(int backOffLevel)
Returns the "fudge factor" for the lambda computation for backOffLevel . |
double |
lambdaFudgeTerm(int backOffLevel)
Returns the "fudge term" for the lambda computation for backOffLevel . |
int |
maxEventComponents()
Allows subclasses to specify the maximum number of event components, so that the constructor of this class may pre-allocate space in its internal, reusable MutableEvent objects (used for efficient
event construction). |
int |
numLevels()
Returns the number of back-off levels. |
Methods inherited from class danbikel.parser.ProbabilityStructure |
---|
cacheSize, copy, defaultSmoothingParamsFilename, doCleanup, dontAddNewParameters, doPruning, getAdditionalData, getFuture, 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 |
---|
protected SubcatModelStructure2()
Method Detail |
---|
public int maxEventComponents()
ProbabilityStructure
MutableEvent
objects (used for efficient
event construction). The default implementation simply returns 1.
maxEventComponents
in class ProbabilityStructure
MutableEvent.ensureCapacity(int)
public int numLevels()
ProbabilityStructure
numLevels
in class ProbabilityStructure
public double lambdaFudge(int backOffLevel)
ProbabilityStructure
backOffLevel
. The default implementation returns
5.0
.
lambdaFudge
in class ProbabilityStructure
backOffLevel
- the back-off level for which to return a "fudge
factor"public double lambdaFudgeTerm(int backOffLevel)
ProbabilityStructure
backOffLevel
. The default implementation returns
0.0
.
lambdaFudgeTerm
in class ProbabilityStructure
public Event getHistory(TrainerEvent trainerEvent, int backOffLevel)
ProbabilityStructure
getHistory
in class ProbabilityStructure
trainerEvent
- the event for which a history context is desired
for the specified back-off levelbackOffLevel
- the back-off level for which to get a history context
from the specified trainer event
Event
object that represents the history context
for the specified back-off level
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |