コード例 #1
0
  /**
   * 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;
  }
コード例 #2
0
 /** Clear cached probabilities.. */
 public void clearCachedProbabilities() {
   cachedLexicalProbabilities.clear();
 }