Package edu.berkeley.nlp.lm.values
Interface ProbBackoffValueContainer
- All Superinterfaces:
Serializable
,ValueContainer<ProbBackoffPair>
- All Known Implementing Classes:
CompressibleProbBackoffValueContainer
,UncompressedProbBackoffValueContainer
,UnrankedUncompressedProbBackoffValueContainer
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getBackoff
(int ngramOrder, long index) float
getProb
(int ngramOrder, long index) Creates a fresh value of object (useful for passing as an output parameter)long
getSuffixOffset
(long index, int ngramOrder) Methods inherited from interface edu.berkeley.nlp.lm.values.ValueContainer
add, clearStorageForOrder, createFreshValues, getFromOffset, numValueBits, setFromOtherValues, setMap, setSizeAtLeast, storeSuffixoffsets, trim, trimAfterNgram
-
Method Details
-
getProb
float getProb(int ngramOrder, long index) -
getBackoff
float getBackoff(int ngramOrder, long index) -
getScratchValue
ProbBackoffPair getScratchValue()Description copied from interface:ValueContainer
Creates a fresh value of object (useful for passing as an output parameter)- Specified by:
getScratchValue
in interfaceValueContainer<ProbBackoffPair>
- Returns:
-
getSuffixOffset
long getSuffixOffset(long index, int ngramOrder)
-