If I use opennlp in JAVA, how can I get the frequency of every token in a txt file? I try to use tokenizer.getTokenProbabilities()
, but it seems not for word frequency but for probabilities. Any method recommend?
Found this from a google search. Looks good enough. Is this what you were looking for?