Bird
0
0

Which input type is required for an embedding layer in NLP?

easy📝 Conceptual Q2 of 15
NLP - Sequence Models for NLP
Which input type is required for an embedding layer in NLP?
ARaw text strings
BFloating point word embeddings
COne-hot encoded vectors
DInteger indices representing words
Step-by-Step Solution
Solution:
  1. Step 1: Identify embedding layer input requirements

    Embedding layers expect integer indices that represent words or tokens as input.
  2. Step 2: Evaluate options

    Raw text strings and one-hot vectors are not directly accepted; floating point embeddings are outputs, not inputs.
  3. Final Answer:

    Integer indices representing words -> Option D
  4. Quick Check:

    Embedding input = Integer indices [OK]
Quick Trick: Embedding layers take integer word IDs, not raw text or vectors [OK]
Common Mistakes:
MISTAKES
  • Feeding raw text directly
  • Using one-hot vectors as input
  • Confusing input and output formats

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NLP Quizzes