Package opennlp.tools.langdetect
Interface LanguageDetectorContextGenerator
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultLanguageDetectorContextGenerator
public interface LanguageDetectorContextGenerator extends Serializable
A context generator interface forLanguageDetector
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]
getContext(CharSequence document)
Retrieves the contexts for adocument
using character ngrams.
-
-
-
Method Detail
-
getContext
String[] getContext(CharSequence document)
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.
-
-