Skip to content
ml-recall

#one-hot

3 questions from NLP Fundamentals, Text Representation & Embeddings, PyTorch

Timed test

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

Take a test
Q 1 / 3Score 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