org.apache.lucene.analysis.ngram

Class EdgeNGramTokenizer

    • Constructor Detail

      • EdgeNGramTokenizer

        public EdgeNGramTokenizer(int minGram,
                                  int maxGram)
        Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
        Parameters:
        minGram - the smallest n-gram to generate
        maxGram - the largest n-gram to generate
      • EdgeNGramTokenizer

        public EdgeNGramTokenizer(AttributeFactory factory,
                                  int minGram,
                                  int maxGram)
        Creates EdgeNGramTokenizer that can generate n-grams in the sizes of the given range
        Parameters:
        factory - AttributeFactory to use
        minGram - the smallest n-gram to generate
        maxGram - the largest n-gram to generate