class_docstr: This class implements the actual language identifier.
class_docstr_tok: ["This","class","implements","the","actual","language","identifier","."]
code: def nb_classprobs(self, fv):
      # compute the partial log-probability of the document given each class
      pdc = np.dot(fv, self.nb_ptc)
      # compute the partial log-probability of the document in each class
      pd = pdc + self.nb_pc
      return pd
  
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 6 for calling the LanguageIdentifier obj's underlying member method code with example usage: obj.nb_classprobs(fv) and returns: pd