Class DefaultLanguageDetectorContextGenerator

    • Constructor Detail

      • DefaultLanguageDetectorContextGenerator

        public DefaultLanguageDetectorContextGenerator​(int minLength,
                                                       int maxLength,
                                                       CharSequenceNormalizer... normalizers)
        Creates a customizable @DefaultLanguageDetectorContextGenerator that computes ngrams from text
        Parameters:
        minLength - min ngrams chars
        maxLength - max ngrams chars
        normalizers - zero or more normalizers to be applied in to the text before extracting ngrams