Package io.outofprintmagazine.nlp.utils
Class NGramUtils
- java.lang.Object
-
- io.outofprintmagazine.nlp.utils.NGramUtils
-
public class NGramUtils extends Object
You will need to set phrasefinder_ApiKey in your IParameterStore.
Visit: Phrase Finder to sign up.
- Author:
- Ram Sadasiv
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NGramUtils.NGramPhraseScore
class
NGramUtils.NGramScore
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToWordCache(List<String> tokens)
boolean
checkWordCache(String token)
static NGramUtils
getInstance(IParameterStore parameterStore)
List<NGramUtils.NGramPhraseScore>
getWordCache(String token)
void
pruneWordCache()
-
-
-
Method Detail
-
getInstance
public static NGramUtils getInstance(IParameterStore parameterStore) throws IOException
- Throws:
IOException
-
getWordCache
public List<NGramUtils.NGramPhraseScore> getWordCache(String token)
-
checkWordCache
public boolean checkWordCache(String token)
-
pruneWordCache
public void pruneWordCache()
-
-