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 adocumentusing character ngrams.
-
-
-
Method Detail
-
getContext
String[] getContext(CharSequence document)
Retrieves 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.
-
-