public class GoogleNgramsCounts extends CachedNgramCounter
| Constructor and Description |
|---|
GoogleNgramsCounts(String cacheFile,
String googleNgramsDataDir) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMaxNumTokens() |
protected Map<String,Long> |
getNgramCount(Set<String> set) |
long |
getTotalCount(int numTokens) |
getCacheSize, getCount, getCountprotected int getMaxNumTokens()
getMaxNumTokens in class CachedNgramCounterprotected Map<String,Long> getNgramCount(Set<String> set)
getNgramCount in class CachedNgramCounterpublic long getTotalCount(int numTokens)
getTotalCount in class CachedNgramCounterCopyright © 2017. All rights reserved.