Word Embedding
- 19Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
19 questions
- 1In the 1-of-N encoding representation, each word is represented by a vector whose dimension equals the number of_____.
Hint
Think about the total number of distinct words in the language.
Answer
possible words (vocabulary size)
- 2A major drawback of 1-of-N encoding is that it provides no information about the_____between words.
Hint
Consider whether you can tell from the vectors that 'cat' and 'dog' are both animals.
Answer
relationships (or semantic similarity)
- 3Word Class (clustering) groups similar words into classes, but it cannot represent the_____between different classes.
Hint
For example, the class of animals and the class of actions they perform are related, but this is lost in clustering.
Answer
relationships (or associations)
- 4Word Embedding projects each word into a high-dimensional space where the dimension is typically much lower than that of_____encoding.
Hint
What is the naive encoding that uses a vector as large as the vocabulary?
Answer
1-of-N
- 5Learning Word Embedding is an unsupervised problem because we have only input (words) but no_____for the network output.
Hint
We do not know the desired word vectors beforehand; the network learns from context.
Answer
output (or target vectors)
- 6Using an Auto-encoder with 1-of-N encoding as input cannot learn meaningful word embeddings because the input vectors are_____.
Hint
How does the Auto-encoder treat different words? They are all equally dissimilar.
Answer
independent (or orthogonal)
- 7In count-based word embedding methods like GloVe, the dot product of two word vectors should be close to the_____of the two words.
Hint
What statistic captures how often two words appear together in documents?
Answer
co-occurrence count (or N_ij)
- 8In prediction-based word embedding, a neural network is trained to predict the next word given the_____word(s).
Hint
It uses what kind of input to guess the upcoming word?
Answer
previous (or context)
- 9To capture more context, the prediction model can be extended to use more than one preceding word, but all input words share the_____matrix.
Hint
What is tied together so that the same word gets the same embedding regardless of position?
Answer
weight (or transformation)
- 10To enforce weight sharing in the prediction model, the weights must be initialized identically and updated using the gradients from the_____weight as well.
Hint
How do you make sure both weights stay equal after each update?
Answer
other (or corresponding)
- 11CBOW (Continuous Bag-of-Words) is a prediction-based method that uses the context words to predict the_____word.
Hint
Instead of predicting the next word, what does it predict?
Answer
middle (or center)
- 12Skip-gram is the opposite of CBOW: it uses the center word to predict the_____words.
Hint
Given a word, what does it try to output?
Answer
context (or surrounding)
- 13According to Tomas Mikolov, the word vector network is not deep because the task works well with a shallow network and reduces_____.
Hint
What benefit does a shallow network provide for training on huge datasets?
Answer
computational cost (or computation)
- 14Word vectors exhibit a property that allows analogies: for example, the vector for "Rome" minus "Italy" plus "Berlin" is close to the vector for "_____".
Hint
If Rome is to Italy, what is Berlin to?
Answer
Germany
- 15To answer an analogy question like "Rome is to Italy as Berlin is to ?", we compute Berlin - Rome + Italy and find the word whose vector is_____to the result.
Hint
What operation do you perform on the vectors to get the target word?
Answer
closest (or most similar)
- 16For cross-lingual word embedding, after learning separate embeddings for Chinese and English, we can project them into the same space using known_____word pairs.
Hint
What kind of word pairs do we need to learn the mapping?
Answer
aligned (or corresponding)
- 17In image embedding, an image is projected into the same vector space as word embeddings, allowing the model to recognize objects it has never seen, a task called_____classification.
Hint
What term describes recognizing new classes not present in training?
Answer
zero-shot
- 18For document embedding, simply using bag-of-words is insufficient because it ignores the_____of words.
Hint
What important information is lost when you treat a document as a set of words?
Answer
order (or sequence)
- 19The document embedding methods listed as unsupervised (e.g., paragraph vector) require only a collection of documents, while supervised methods need additional_____for each document.
Hint
What extra information do supervised methods require beyond the documents themselves?
Answer
labels (or annotations)

Ask anything
We've read this whole study set, so questions about it get the best answers.