37383940414243
private long numberOfCacheHits; private long numberOfCacheMisses; public CachedFeatureGenerator(AdaptiveFeatureGenerator... generators) { this.generator = new AggregatedFeatureGenerator(generators); contextsCache = new Cache(100); }
3839404142434445
} public ChunkContextGenerator(int cacheSize) { super(); if (cacheSize > 0) { contextsCache = new Cache(cacheSize); } }
6263646566676869
*/ public DefaultPOSContextGenerator(int cacheSize, Dictionary dict) { this.dict = dict; dictGram = new String[1]; if (cacheSize > 0) { contextsCache = new Cache(cacheSize); } }
*/ public DefaultNameContextGenerator(int cacheSize) { super(); initPatterns(); if (cacheSize > 0) { contextsCache = new Cache(cacheSize); } }
5556575859606162
public DefaultPOSContextGenerator(int cacheSize,Dictionary dict) { this.dict = dict; dictGram = new String[1]; if (cacheSize > 0) { contextsCache = new Cache(cacheSize); } }
64656667686970717273
this.size = size; this.model = model; if (cacheSize > 0) { contextsCache = new Cache(cacheSize); } this.probs = new double[model.getNumOutcomes()]; }