Skip to content
ml-recall

#averaged-bow

1 question from NLP Fundamentals

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

easyAI-checkedNLP Fundamentals

An averaged bag-of-words represents a document DD as x=1∣D∣∑i=1∣D∣xD[i]\mathbf{x} = \frac{1}{|D|}\sum_{i=1}^{|D|} \mathbf{x}^{D_{[i]}}, the mean of the one-hot vectors of its tokens. For the document "the cat saw the dog", what is the entry of x\mathbf{x} for the word "the"?

a number, e.g. 0.25