Guide-linked quiz · Medium Level
TF-IDF and Bag-of-Words Models Quiz
Review how bag-of-words and TF-IDF represent documents, weight distinctive terms, and support sparse information retrieval.
Question 1 of 8
What key information does a bag-of-words model discard?
Preview every question8 questions
Answers and explanations appear as you take the quiz.
- What key information does a bag-of-words model discard?
- The order and grammar of words
- The word counts
- The vocabulary
- The document length
- What does the IDF part of TF-IDF do?
- Boosts words common across all documents
- Downweights words that appear in many documents
- Counts characters
- Translates rare words
- A word that appears in every document in the collection gets an IDF value close to what?
- One thousand
- Negative infinity
- Zero
- The document count
- How is a TF-IDF score for a term computed?
- TF minus IDF
- TF divided by IDF
- TF plus the document length
- TF multiplied by IDF
- Which similarity measure is commonly used to compare TF-IDF document vectors?
- Cosine similarity
- Edit distance
- Mean squared error
- Bit count
- Why does TF-IDF give high scores to certain words?
- They are long words
- They are frequent in one document but rare across the collection
- They appear in every document
- They are capitalized
- In a bag-of-words representation, what does a vector position usually correspond to?
- A sentence’s original word position
- A document’s publication date
- A term in the vocabulary
- A grammatical parse-tree branch
- In the common IDF formula log(N/df), what does df represent?
- The number of times a word appears in one document
- The total number of words in the vocabulary
- The number of labels assigned to a document
- The number of documents containing the term
Keep testing yourself
More quizzes picked for your level.