Interface OldNgramExtractor.Filter

Enclosing class:
OldNgramExtractor

public static interface OldNgramExtractor.Filter
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    use(String gram)
    Allows to skip some n-grams.
  • Method Details

    • use

      boolean use(String gram)
      Allows to skip some n-grams. This is currently used to filter n-grams in to-analyze text when the n-gram is unknown to the loaded language profiles.
      Returns:
      true to use this n-gram, false to skip it.