class_docstr: Splits input text into N-grams instead of words.
  
  >>> ngt = NgramTokenizer(4)
  >>> [token.text for token in ngt("hi there")]
  ["hi t", "i th", " the", "ther", "here"]
  
  Note that this tokenizer does NOT use a regular expression to extract
  words, so the grams emitted by it will contain whitespace, punctuation,
  etc. You may want to massage the input or add a custom filter to this
  tokenizer's output.
  
  Alternatively, if you only want sub-word grams without whitespace, you
  could combine a RegexTokenizer with NgramFilter instead.
class_docstr_tok: ["Splits","input","text","into","N-grams","instead","of","words",".",">",">",">","ngt","=","NgramTokenizer","(","4",")",">",">",">","[","token.text","for","token","in","ngt","(","``","hi","there","''",")","]","[","``","hi","t","''",",","``","i","th","''",",","``","the","''",",","``","ther","''",",","``","here","''","]","Note","that","this","tokenizer","does","NOT","use","a","regular","expression","to","extract","words",",","so","the","grams","emitted","by","it","will","contain","whitespace",",","punctuation",",","etc",".","You","may","want","to","massage","the","input","or","add","a","custom","filter","to","this","tokenizer","'s","output",".","Alternatively",",","if","you","only","want","sub-word","grams","without","whitespace",",","you","could","combine","a","RegexTokenizer","with","NgramFilter","instead","."]
code: def __eq__(self, other):
      if self.__class__ is other.__class__:
          if self.min == other.min and self.max == other.max:
              return True
      return False
  
file_path: whoosh/src/whoosh/analysis/ngrams.py
imports: from whoosh.compat import text_type
  from whoosh.compat import xrange
  from whoosh.analysis.acore import Token
  from whoosh.analysis.filters import Filter, LowercaseFilter
  from whoosh.analysis.tokenizers import Tokenizer, RegexTokenizer
label_desc: Use image node_id 2 for calling the NgramTokenizer obj's underlying member method code with example usage: obj.__eq__(other) and returns: False, True