public class WordCountUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
WordCountUtils()
Allow overrides but not instantiation.
|
Modifier and Type | Method and Description |
---|---|
static <W extends java.lang.Comparable> |
countWordsInSentences(java.util.List<java.util.List<W>> sentences,
StopWords stopWords)
Count words in sentences.
|
public static <W extends java.lang.Comparable> java.util.Map<java.lang.String,WordCountAndSentences> countWordsInSentences(java.util.List<java.util.List<W>> sentences, StopWords stopWords)
sentences
- The sentences.stopWords
- Stop words.