全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Term frequency, document frequency, tf–idf score?

又称: term frequency · document frequency · tf--idf score

Definition 30.3 University Computer Science — Year 1 · 第 30 章 — Project: A Search Engine for a Folder of Texts

In a collection of NN documents, the term frequency tf(t,d)\mathrm{tf}(t, d) of a word tt in a document dd is the number of times tt occurs in dd, and its document frequency df(t)\mathrm{df}(t) is the number of documents that contain it. The tf–idf score of a document dd for a query of words t1,…,tkt_1, \dots, t_k is

score(d)=∑i=1ktf(ti,d)⋅ln⁡Ndf(ti).\mathrm{score}(d) = \sum_{i=1}^{k} \mathrm{tf}(t_i, d) \cdot \ln \frac{N}{\mathrm{df}(t_i)} .
在原文中阅读 →