edu.northwestern.at.morphadorner.corpuslinguistics.postagger.smoothing.lexical

## Interface LexicalSmoother

- All Known Implementing Classes:
    AbstractLexicalSmoother, AdditiveLexicalSmoother, DefaultLexicalSmoother

      public interface LexicalSmoother

  Interface for a lexical smoother.

  A lexical smoother computes the lexically smoothed probabability of a word given a part of speech tag, e.g., p( word | tag ).

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `cachedProbabilitiesCount()` Get the number of cached lexical probabilities.
    `void` | `clearCachedProbabilities()` Clear cached probabilities..
    `Probability` | `lexicalProbability(java.lang.String word, java.lang.String tag)` Get lexically smoothed probability of a word given a tag.
    `void` | `setPartOfSpeechTagger(PartOfSpeechTagger posTagger)` Set the part of speech tagger for this smoother.

- - ### Method Detail

    - #### setPartOfSpeechTagger

          void setPartOfSpeechTagger(PartOfSpeechTagger posTagger)

      Set the part of speech tagger for this smoother.
      Parameters:
        `posTagger` - Part of speech tagger for which this smoother provides probabilities.

    - #### cachedProbabilitiesCount

          int cachedProbabilitiesCount()

      Get the number of cached lexical probabilities.
      Returns:
        The number of cached lexical probabilities.

    - #### clearCachedProbabilities

          void clearCachedProbabilities()

      Clear cached probabilities..

    - #### lexicalProbability

          Probability lexicalProbability(java.lang.String word,
                                       java.lang.String tag)

      Get lexically smoothed probability of a word given a tag.
      Parameters:
        `word` - The word.
        `tag` - The part of speech tag.
      Returns:
        Lexically smoothed probability of word given tag, e.g., p( word | tag ).