|
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.SubcatModelStructure1
danbikel.parser.ms.BrokenLeftSubcatModelStructure
public class BrokenLeftSubcatModelStructure
Provides the complete back-off structure of the subcat-generation
model for the left side of the head child. This model structure is
just like LeftSubcatModelStructure1
but is “broken”
in that its lambdaFudge(int)
method returns 5.0 for
all back-off levels and its lambdaFudgeTerm(int)
method returns
0.0 for all back-off levels, just as Collins had implemented
for his thesis parser.
SubcatModelStructure1
.
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 | |
---|---|
BrokenLeftSubcatModelStructure()
Constructs a new BrokenLeftSubcatModelStructure instance. |
Method Summary | |
---|---|
ProbabilityStructure |
copy()
Returns a copy of this object. |
Event |
getFuture(TrainerEvent trainerEvent,
int backOffLevel)
Gets the future being predicted conditioning on this subcat event. |
double |
lambdaFudge(int backOffLevel)
Returns 5.0 regardless of the value of the argument. |
double |
lambdaFudgeTerm(int backOffLevel)
Returns 0.0 regardless of the value of the argument. |
Methods inherited from class danbikel.parser.ms.SubcatModelStructure1 |
---|
getHistory, 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 |
---|
public BrokenLeftSubcatModelStructure()
BrokenLeftSubcatModelStructure
instance.
Method Detail |
---|
public double lambdaFudge(int backOffLevel)
lambdaFudge
in class SubcatModelStructure1
backOffLevel
- the back-off level for which to return a "fudge
factor"public double lambdaFudgeTerm(int backOffLevel)
lambdaFudgeTerm
in class SubcatModelStructure1
public Event getFuture(TrainerEvent trainerEvent, int backOffLevel)
getFuture
in class ProbabilityStructure
trainerEvent
- the maximal-context event from which to get
the future being predictedbackOffLevel
- the back-off level whose estimate is being
sought
TrainerEvent
instancepublic ProbabilityStructure copy()
copy
in class ProbabilityStructure
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |