class_docstr: Objects of this class realize the transformation between word-document co-occurrence matrix (int)
  into a locally/globally weighted TF-IDF matrix (positive floats).
  
  Examples
  --------
  .. sourcecode:: pycon
  
      >>> import gensim.downloader as api
      >>> from gensim.models import TfidfModel
      >>> from gensim.corpora import Dictionary
      >>>
      >>> dataset = api.load("text8")
      >>> dct = Dictionary(dataset)  # fit dictionary
      >>> corpus = [dct.doc2bow(line) for line in dataset]  # convert corpus to BoW format
      >>>
      >>> model = TfidfModel(corpus)  # fit model
      >>> vector = model[corpus[0]]  # apply model to the first corpus document
class_docstr_tok: ["Objects","of","this","class","realize","the","transformation","between","word-document","co-occurrence","matrix","(","int",")","into","a","locally\/globally","weighted","TF-IDF","matrix","(","positive","floats",")",".","Examples","--","--","--","--","..","sourcecode",":",":","pycon",">",">",">","import","gensim.downloader","as","api",">",">",">","from","gensim.models","import","TfidfModel",">",">",">","from","gensim.corpora","import","Dictionary",">",">",">",">",">",">","dataset","=","api.load","(","``","text8","''",")",">",">",">","dct","=","Dictionary","(","dataset",")","#","fit","dictionary",">",">",">","corpus","=","[","dct.doc2bow","(","line",")","for","line","in","dataset","]","#","convert","corpus","to","BoW","format",">",">",">",">",">",">","model","=","TfidfModel","(","corpus",")","#","fit","model",">",">",">","vector","=","model","[","corpus","[","0","]","]","#","apply","model","to","the","first","corpus","document"]
code: def __str__(self):
      return "%s<num_docs=%s, num_nnz=%s>" % (
          self.__class__.__name__,
          self.num_docs,
          self.num_nnz,
      )
  
file_path: gensim/gensim/models/tfidfmodel.py
imports: import logging
  from functools import partial
  import re
  import numpy
  from gensim import interfaces, matutils, utils
  from gensim.utils import deprecated
label_desc: Use image node_id 3 for calling the TfidfModel obj's underlying member method code with example usage: obj.__str__() and returns: unknown