Skip to content
ml-recall

#tf-idf

4 questions from NLP Fundamentals, Text Representation & Embeddings

Timed test

4 questions · 4 min · score and explanations at the end

Take a test
Q 1 / 4Score 0 / 0

Question 1: Short answer

mediumAI-checkedNLP Fundamentals

A collection has 1,000 documents. The term "glacier" occurs 100 times in document dd and appears in 10 documents overall. With tft,d=1+log⁡10count(t,d)\mathrm{tf}_{t,d} = 1 + \log_{10} \mathrm{count}(t, d) and idft=log⁡10(N/dft)\mathrm{idf}_t = \log_{10}(N / \mathrm{df}_t), what is tf-idf(glacier,d)\textrm{tf-idf}(\text{glacier}, d)?

a number