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, getCount
protected int getMaxNumTokens()
getMaxNumTokens
in class CachedNgramCounter
protected Map<String,Long> getNgramCount(Set<String> set)
getNgramCount
in class CachedNgramCounter
public long getTotalCount(int numTokens)
getTotalCount
in class CachedNgramCounter
Copyright © 2017. All rights reserved.