/**
   * Get the number of cached lexical probabilities.
   *
   * @return The number of cached lexical probabilities.
   */
  public int cachedProbabilitiesCount() {
    int result = 0;

    if (cachedLexicalProbabilities != null) {
      result = cachedLexicalProbabilities.size();
    }

    return result;
  }
 /** Clear cached probabilities.. */
 public void clearCachedProbabilities() {
   cachedLexicalProbabilities.clear();
 }