Interface OldNgramExtractor.Filter

  • Enclosing class:
    OldNgramExtractor

    public static interface OldNgramExtractor.Filter
    • Method Detail

      • use

        boolean use​(java.lang.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.