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