class_docstr: This class implements the actual language identifier.
class_docstr_tok: ["This","class","implements","the","actual","language","identifier","."]
docstr: Return a list of languages in order of likelihood.
docstr_tok: ["Return","a","list","of","languages","in","order","of","likelihood","."]
code: def rank(self, text):
      """
      Return a list of languages in order of likelihood.
      """
      fv = self.instance2fv(text)
      probs = self.norm_probs(self.nb_classprobs(fv))
      return [
          (str(k), float(v))
          for (v, k) in sorted(
              zip(probs, self.nb_classes), reverse=True
          )
      ]
  
imports: from __future__ import print_function
  import base64
  import bz2
  import json
  import optparse
  import sys
  import logging
  import numpy
  from wsgiref.simple_server import make_server
  from wsgiref.util import shift_path_info
  from collections import defaultdict
label_desc: Use image node_id 8 for calling the LanguageIdentifier obj's underlying member method code with example usage: obj.rank(text) and returns: unknown