edu.northwestern.at.morphadorner.corpuslinguistics.wordcounts

## Class WordCountUtils

- java.lang.Object
- - edu.northwestern.at.morphadorner.corpuslinguistics.wordcounts.WordCountUtils

-     public class WordCountUtils
      extends java.lang.Object

  Word count utilities.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `WordCountUtils()` Allow overrides but not instantiation.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <W extends java.lang.Comparable> java.util.Map<java.lang.String,WordCountAndSentences>` | `countWordsInSentences(java.util.List<java.util.List<W>> sentences, StopWords stopWords)` Count words in sentences.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WordCountUtils

          protected WordCountUtils()

      Allow overrides but not instantiation.

  - ### Method Detail

    - #### countWordsInSentences

          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)

      Count words in sentences.
      Parameters:
        `sentences` - The sentences.
        `stopWords` - Stop words.
      Returns:
        Map of words to WordCountAndSentence objects.