Package opennlp.tools.langdetect
Interface LanguageDetectorContextGenerator
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultLanguageDetectorContextGenerator
A context generator interface for
LanguageDetector
.-
Method Summary
Modifier and TypeMethodDescription<T extends CharSequence>
T[]getContext
(CharSequence document) Retrieves the contexts for adocument
using character ngrams.
-
Method Details
-
getContext
Retrieves the contexts for adocument
using character ngrams.- Parameters:
document
- The textual input used to extract context from.- Returns:
- An array of contexts on which a model basis its decisions.
-