Package com.optimaize.langdetect.ngram
Interface OldNgramExtractor.Filter
-
- Enclosing class:
- OldNgramExtractor
public static interface OldNgramExtractor.Filter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
use(String gram)
Allows to skip some n-grams.
-
-
-
Method Detail
-
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.
-
-