Interface LanguageDetectorContextGenerator

    • Method Detail

      • getContext

        String[] getContext​(CharSequence document)
        Retrieves the contexts for a document 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.