John Ladd, jrladd.com/slides/texts-in-space
spacebar for next slide, arrow keys to navigate, esc/menu for overview
From EarlyPrint Corpus Search
For TF–IDF, yes! For document embedding, probably not.
austen = “It is a truth universally acknowledged, that a single man in possession of a good fortune must be in want of a wife.”
wharton = “I had the story, bit by bit, from various people, and, as generally happens in such cases, each time it was a different story.”
Term Frequency–Inverse Document Frequency
\[TF = \frac{Number\,of\,times\,a\,word\,appears}{Total\,words\,in\,the\,text}\]
\[IDF = \ln({\frac{Total\,number\,of\,texts+1}{Number\,of\,texts\,the\,word\,appears\,in}})+1\]
\[TF \times IDF\]