docstr: This is a class that enables one to train and save a classification model.
  
  Parameters
  ----------
  term_doc_matrix : TermDocMatrix
  term_doc_matrix_factory : TermDocMatrixFactory
  category : str
          Category name
  nlp : spacy parser
docstr_tok: ["This","is","a","class","that","enables","one","to","train","and","save","a","classification","model",".","Parameters","--","--","--","--","--","term_doc_matrix",":","TermDocMatrix","term_doc_matrix_factory",":","TermDocMatrixFactory","category",":","str","Category","name","nlp",":","spacy","parser"]
code: def __init__(
      self, term_doc_matrix, term_doc_matrix_factory, category, nlp=None
  ):
      """This is a class that enables one to train and save a classification model.
  
      Parameters
      ----------
      term_doc_matrix : TermDocMatrix
      term_doc_matrix_factory : TermDocMatrixFactory
      category : str
              Category name
      nlp : spacy parser
      """
      self._term_doc_matrix = term_doc_matrix
      self._term_doc_matrix_factory = term_doc_matrix_factory
      assert term_doc_matrix_factory._nlp is None
      assert term_doc_matrix_factory.category_text_iter is None
      self._category = category
      self._clf = None
      self._proba = None
  
file_path: scattertext/scattertext/DeployedClassifier.py
imports: from sklearn.linear_model import PassiveAggressiveClassifier
  from statsmodels.distributions import ECDF
label_desc: Use image node_id 1 to create a new DeployedClassifierFactory object  with example: obj = DeployedClassifierFactory(term_doc_matrix, term_doc_matrix_factory, category, nlp)