edu.berkeley.nlp.lm.values
Interface ProbBackoffValueContainer
- All Superinterfaces:
- Serializable, ValueContainer<ProbBackoffPair>
- All Known Implementing Classes:
- CompressibleProbBackoffValueContainer, UncompressedProbBackoffValueContainer, UnrankedUncompressedProbBackoffValueContainer
public interface ProbBackoffValueContainer
- extends ValueContainer<ProbBackoffPair>
Methods inherited from interface edu.berkeley.nlp.lm.values.ValueContainer |
add, clearStorageForOrder, createFreshValues, getFromOffset, numValueBits, setFromOtherValues, setMap, setSizeAtLeast, storeSuffixoffsets, trim, trimAfterNgram |
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 interface ValueContainer<ProbBackoffPair>
- Returns:
getSuffixOffset
long getSuffixOffset(long index,
int ngramOrder)