Flashcards · Natural Language Processing · Free
Natural Language Processing flashcards, generated for you.
Example Natural Language Processing study cards to learn from right now — then generate a full set from your own notes (plus a practice quiz) and export to Quizlet or Anki. Free, no account needed.
Example Natural Language Processing flashcards
What is the core goal of Natural Language Processing?
To enable computers to understand, interpret, and generate human language in a meaningful and useful way, bridging the gap between raw text and actionable meaning.
Why is language ambiguous and what makes NLP challenging?
Words have multiple meanings (polysemy), phrases can be structured multiple ways (syntax), and meaning depends on context and culture. Humans resolve this effortlessly; machines must learn patterns from data.
What is tokenization and why is it the first step in most NLP pipelines?
Breaking text into individual units (tokens: words, subwords, or characters). It converts unstructured text into discrete pieces that algorithms can process mathematically.
Explain word embeddings intuitively. Why not just use one-hot encoding?
Word embeddings map words to dense vectors where similar words are close together in space. One-hot encoding treats all words as equally different; embeddings capture semantic relationships (e.g., 'king' - 'man' + 'woman' ≈ 'queen').
What is the transformer architecture's key innovation compared to earlier RNNs?
Transformers use self-attention to directly compare every word to every other word in parallel, rather than processing sequentially. This enables faster training and better capture of long-range dependencies.
Define attention mechanism mathematically: what are Query, Key, and Value matrices computing?
Attention(Q,K,V) = softmax(QK^T/√d_k)V. Q matches against all K vectors to produce alignment weights (softmax), then weights are used to aggregate V vectors. This determines which words to focus on.
What is the purpose of the softmax function in attention and language modeling?
Softmax converts raw alignment scores into a probability distribution (0 to 1, summing to 1). It emphasizes high-scoring matches while suppressing low ones, enabling interpretable attention weights.
Explain why position encoding is necessary in transformers but not in RNNs.
Transformers process all tokens in parallel and don't have inherent sequential order. Position encodings inject word order information into embeddings so the model knows which word came first. RNNs naturally preserve order through sequential processing.
What is pre-training and fine-tuning? Why is this paradigm dominant in modern NLP?
Pre-training: learn general language patterns on massive unlabeled data (next token prediction, masked language modeling). Fine-tuning: adapt the pre-trained model to a specific task with labeled data. This is dominant because pre-training captures universal linguistic knowledge, dramatically reducing data and compute needed for downstream tasks.
How do language models generate text, and why might they produce hallucinations?
Language models predict the next token by sampling from P(token|previous context). They hallucinate when patterns learned during training lead to confident predictions that are factually false—the model optimizes for linguistic plausibility, not truth.
Make your own Natural Language Processing study set
Flashcards for related topics
Studying Natural Language Processing to build with AI? MindloomHQ turns it into real skills — structured courses, agent projects, and certificates.
Explore MindloomHQ →