class_docstr: This class implements the actual language identifier.
class_docstr_tok: ["This","class","implements","the","actual","language","identifier","."]
docstr: Classify an instance.
docstr_tok: ["Classify","an","instance","."]
code: def classify(self, text):
      """
      Classify an instance.
      """
      fv = self.instance2fv(text)
      probs = self.norm_probs(self.nb_classprobs(fv))
      cl = np.argmax(probs)
      conf = float(probs[cl])
      pred = str(self.nb_classes[cl])
      return pred, conf
  
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 7 for calling the LanguageIdentifier obj's underlying member method code with example usage: obj.classify(text) and returns: pred,  conf