Class DefaultLanguageDetectorContextGenerator

    • Constructor Detail

      • DefaultLanguageDetectorContextGenerator

        public DefaultLanguageDetectorContextGenerator​(int minLength,
                                                       int maxLength,
                                                       CharSequenceNormalizer... normalizers)
        Creates a customizable DefaultLanguageDetectorContextGenerator that computes ngrams from text.
        Parameters:
        minLength - The min number of ngrams characters. Must be greater than 0.
        maxLength - The max number of ngrams characters. Must be greater than 0 and must be greater than minLength.
        normalizers - Zero or more normalizers to be applied in to the text before extracting ngrams.