public class LargeTrigramModel extends LargeNGramModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_TRIGRAM_CACHE_SIZE
The property that defines that maximum number of trigrams to be cached
|
applyLanguageWeightAndWip, BYTES_PER_NGRAM, BYTES_PER_NMAXGRAM, clearCacheAfterUtterance, dictionary, format, fullSmear, languageWeight, logger, logMath, maxDepth, ngramCacheSize, ngramLogFile, PROP_APPLY_LANGUAGE_WEIGHT_AND_WIP, PROP_CLEAR_CACHES_AFTER_UTTERANCE, PROP_FULL_SMEAR, PROP_LANGUAGE_WEIGHT, PROP_NGRAM_CACHE_SIZE, PROP_QUERY_LOG_FILE, PROP_WORD_INSERTION_PROBABILITY, unigramWeight, wip
PROP_DICTIONARY, PROP_LOCATION, PROP_MAX_DEPTH, PROP_UNIGRAM_WEIGHT
Constructor and Description |
---|
LargeTrigramModel() |
LargeTrigramModel(java.lang.String format,
java.net.URL urlLocation,
java.lang.String ngramLogFile,
int maxTrigramCacheSize,
int maxBigramCacheSize,
boolean clearCacheAfterUtterance,
int maxDepth,
Dictionary dictionary,
boolean applyLanguageWeightAndWip,
float languageWeight,
double wip,
float unigramWeight,
boolean fullSmear) |
Modifier and Type | Method and Description |
---|---|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
allocate, deallocate, getMaxDepth, getNGramHits, getNGramMisses, getProbability, getSmear, getSmearOld, getVocabulary, getWordID, hasWord, onUtteranceEnd
@S4Integer(defaultValue=100000) public static final java.lang.String PROP_TRIGRAM_CACHE_SIZE
public LargeTrigramModel(java.lang.String format, java.net.URL urlLocation, java.lang.String ngramLogFile, int maxTrigramCacheSize, int maxBigramCacheSize, boolean clearCacheAfterUtterance, int maxDepth, Dictionary dictionary, boolean applyLanguageWeightAndWip, float languageWeight, double wip, float unigramWeight, boolean fullSmear)
format
- format of the modelurlLocation
- Location of the modelngramLogFile
- log file to usemaxTrigramCacheSize
- max cache sizemaxBigramCacheSize
- max cache sizeclearCacheAfterUtterance
- clear cache after each utterancemaxDepth
- ngram orderdictionary
- dictionaryapplyLanguageWeightAndWip
- apply lw during loadlanguageWeight
- lwwip
- word insertion probabilityunigramWeight
- unigram weightfullSmear
- build full smearpublic LargeTrigramModel()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
newProperties
in class LargeNGramModel
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.