|
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.BrokenLexPriorModelStructure
public class BrokenLexPriorModelStructure
Provides the complete back-off structure for the submodel that generates the
marginal probabilities of lexical items and their parts of speech (loosely
but inaccurately called “lexical priors”). This model is
“broken” in that it is just like LexPriorModelStructure1
but does not override the ProbabilityStructure.lambdaFudge(int)
and ProbabilityStructure.lambdaFudgeTerm(int)
methods as would be required to replicate the model
Collins implemented for his thesis.
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 | |
---|---|
BrokenLexPriorModelStructure()
Constructs a new instance. |
Method Summary | |
---|---|
ProbabilityStructure |
copy()
Returns a copy of this instance. |
Event |
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 |
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. |
int |
maxEventComponents()
Returns 2. |
int |
numLevels()
As this model simulates unconditional probabilities using relative-frequency estimation, it has only one back-off level that returns a dummy object. |
Methods inherited from class danbikel.parser.ProbabilityStructure |
---|
cacheSize, defaultSmoothingParamsFilename, doCleanup, dontAddNewParameters, doPruning, getAdditionalData, getTopLevelCacheSize, getTransition, jointModel, lambdaFudge, lambdaFudgeTerm, 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 BrokenLexPriorModelStructure()
Method Detail |
---|
public int maxEventComponents()
maxEventComponents
in class ProbabilityStructure
MutableEvent.ensureCapacity(int)
public int numLevels()
numLevels
in class ProbabilityStructure
public Event getHistory(TrainerEvent trainerEvent, int backOffLevel)
getHistory
in class ProbabilityStructure
trainerEvent
- the maximal context event that is ignored
by this methodbackOffLevel
- the back-off level that is ignored by this method
PriorEvent.history()
public Event getFuture(TrainerEvent trainerEvent, int backOffLevel)
getFuture
in class ProbabilityStructure
trainerEvent
- the maximal-context event from which to construct
the event containing the word/part-of-speech pair whose marginal is
being estimatedbackOffLevel
- back-off level (ignored)
public ProbabilityStructure copy()
copy
in class ProbabilityStructure
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |