Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Term frequency, document frequency, tf–idf score?

También llamado: term frequency · document frequency · tf--idf score

Definition 30.3 University Computer Science — Year 1 · Capítulo 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)} .
Leer en el capítulo →