class_docstr: Represents the corrected version of a user query string. Has the
  following attributes:
  
  ``query``
      The corrected :class:`whoosh.query.Query` object.
  ``string``
      The corrected user query string.
  ``original_query``
      The original :class:`whoosh.query.Query` object that was corrected.
  ``original_string``
      The original user query string.
  ``tokens``
      A list of token objects representing the corrected words.
  
  You can also use the :meth:`Correction.format_string` method to reformat the
  corrected query string using a :class:`whoosh.highlight.Formatter` class.
  For example, to display the corrected query string as HTML with the
  changed words emphasized::
  
      from whoosh import highlight
  
      correction = mysearcher.correct_query(q, qstring)
  
      hf = highlight.HtmlFormatter(classname="change")
      html = correction.format_string(hf)
class_docstr_tok: ["Represents","the","corrected","version","of","a","user","query","string",".","Has","the","following","attributes",":","``","query","``","The","corrected",":","class",":","`","whoosh.query.Query","`","object",".","``","string","``","The","corrected","user","query","string",".","``","original_query","``","The","original",":","class",":","`","whoosh.query.Query","`","object","that","was","corrected",".","``","original_string","``","The","original","user","query","string",".","``","tokens","``","A","list","of","token","objects","representing","the","corrected","words",".","You","can","also","use","the",":","meth",":","`","Correction.format_string","`","method","to","reformat","the","corrected","query","string","using","a",":","class",":","`","whoosh.highlight.Formatter","`","class",".","For","example",",","to","display","the","corrected","query","string","as","HTML","with","the","changed","words","emphasized",":",":","from","whoosh","import","highlight","correction","=","mysearcher.correct_query","(","q",",","qstring",")","hf","=","highlight.HtmlFormatter","(","classname=","''","change","''",")","html","=","correction.format_string","(","hf",")"]
code: def __repr__(self):
      return "%s(%r, %r)" % (
          self.__class__.__name__,
          self.query,
          self.string,
      )
  
imports: from bisect import bisect_left
  from heapq import heappush, heapreplace
  from whoosh import highlight
  from whoosh.compat import iteritems, xrange
label_desc: Use image node_id 2 for calling the Correction obj's underlying member method code with example usage: obj.__repr__() and returns: unknown