1. Home
  2. Explore
  3. Computer Science
  4. Word Embedding

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Word Embedding

  • 19Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Basic Concepts of Word Representation
In the 1-of-N encoding representation, each word is represented by a vector whose dimension equals the number of
.

19 questions

  1. 1
    In 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)

  2. 2
    A 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)

  3. 3
    Word 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)

  4. 4
    Word 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

  5. 5
    Learning 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)

  6. 6
    Using 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)

  7. 7
    In 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)

  8. 8
    In 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)

  9. 9
    To 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)

  10. 10
    To 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)

  11. 11
    CBOW (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)

  12. 12
    Skip-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)

  13. 13
    According 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)

  14. 14
    Word 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

  15. 15
    To 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)

  16. 16
    For 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)

  17. 17
    In 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

  18. 18
    For 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)

  19. 19
    The 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)

1 of 19
Question 1 of 19

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent