Home
last modified time | relevance | path

Searched refs:docfreq (Results 1 – 4 of 4) sorted by relevance

/dports/textproc/py-gensim/gensim-4.0.1/gensim/models/
H A Dtfidfmodel.py108 def df2idf(docfreq, totaldocs, log_base=2.0, add=0.0): argument
129 return add + np.log(float(totaldocs) / docfreq) / np.log(log_base)
186 def smartirs_wglobal(docfreq, totaldocs, global_scheme): argument
207 return np.log2(1.0 * totaldocs / docfreq)
209 return np.log2((totaldocs + 1.0) / docfreq)
211 return max(0, np.log2((1.0 * totaldocs - docfreq) / docfreq))
/dports/textproc/py-langid/unsupported-Python-2.7/train/
H A DDFfeatureselect.py69 with gzip.open(os.path.join(bucket, "docfreq"),'wb') as docfreq:
78 docfreq.write(marshal.dumps(item))
/dports/textproc/py-gensim/gensim-4.0.1/gensim/corpora/
H A Ddictionary.py681 wordid, word, docfreq = line[:-1].split('\t')
689 result.dfs[wordid] = int(docfreq)
/dports/textproc/py-whoosh/Whoosh-2.7.4/docs/source/
H A Drecipes.rst203 docfreq = searcher.doc_frequency("content", "wobble")