Natural Language Processing

Shared by a Flashcards.gg user · generated with AI · Report this set

Covers core natural language processing concepts and pipelines for students and practitioners.

100 cards English Level: University AI & data science Published
Tap the card to flip it

Cards · 100

Tokenization
Preprocesses raw text by splitting sentences into individual words or subwords before feeding them to a model.
Sentence Segmentation
Breaks long documents into individual sentences during preprocessing for summarization or translation.
Stop Word Removal
Cleans search engine indices and bag-of-words models by removing low-information words like the or and.
Stemming
Reduces words to crude base forms in search engines to match queries like running with run.
Lemmatization
Converts inflected forms to dictionary headwords in legal document search to ensure grammatical accuracy.
Lowercasing
Normalizes text vocabulary in sentiment analysis pipelines so Apple and apple share the same token.
Punctuation Removal
Reduces noise in basic topic modeling and keyword extraction algorithms.
Text Normalization
Standardizes social media text by expanding contractions, slang, and misspellings prior to analysis.
Part-of-Speech (POS) Tagging
Disambiguates word syntax for grammar checkers and text-to-speech phonetic synthesis.
Named Entity Recognition (NER)
Extracts names, dates, and locations from unstructured patient records or invoices.
Entity Linking
Connects recognized entity mentions in news articles to specific knowledge graph nodes like Wikidata entries.
Dependency Parsing
Maps grammatical relationships to extract subject-verb-object facts in relation extraction pipelines.
Constituency Parsing
Builds hierarchical phrase trees used in linguistically informed rule-based sentence compression.
Chunking (Shallow Parsing)
Groups words into non-overlapping noun or verb phrases for fast keyphrase extraction.
Coreference Resolution
Determines which pronouns refer to which entities in conversational agents to maintain context.
Bag-of-Words (BoW)
Represents text as word frequency vectors for simple spam filtering and text categorization.
TF-IDF
Weights keywords based on rarity across documents in information retrieval and document recommendation.
N-grams
Captures local word order patterns in predictive typing keyboards and classical language models.
Word2Vec (Skip-gram / CBOW)
Generates static dense word embeddings to calculate semantic similarity in recommendation systems.
GloVe
Precomputes word vectors from global co-occurrence matrices for word analogy and classification tasks.
FastText
Handles out-of-vocabulary words by using subword embeddings in multilingual search engines.
Contextual Embeddings
Generates distinct vector representations for polysemous words depending on surrounding sentence context.
One-Hot Encoding
Encodes categorical vocabulary IDs in baseline models or as input to initial embedding lookup layers.
Out-of-Vocabulary (OOV) Handling
Uses UNK tokens or character fallbacks to prevent pipeline crashes on rare words or typos.
Byte-Pair Encoding (BPE)
Splits text into frequent subword units for large language model tokenizers like GPT.
WordPiece
Builds subword vocabularies by maximizing likelihood, used as the tokenizer for BERT models.
SentencePiece
Tokenizes raw, language-agnostic text without requiring pre-segmented whitespace for multilingual models.
Language Modeling
Predicts subsequent tokens in autocomplete systems, code generation, and generative chatbots.
Perplexity
Evaluates how well a language model predicts a held-out test corpus in model benchmarking.
Recurrent Neural Network (RNN)
Processes sequential text data sequentially for early automated translation and time-series text tasks.
Long Short-Term Memory (LSTM)
Mitigates vanishing gradients to model longer text sequences in handwriting recognition and voice assistants.
Gated Recurrent Unit (GRU)
Provides a computationally cheaper recurrent architecture for speech recognition and sequence classification.
Vanishing Gradient Problem
Addressed in deep recurrent neural networks to enable learning dependencies across long documents.
Bidirectional RNN
Considers past and future context simultaneously in sequence labeling tasks like biological entity tagging.
Encoder-Decoder Architecture
Translates an input sequence into a target sequence in machine translation and abstractive summarization.
Seq2Seq
Maps variable-length input text to variable-length output text in conversational chatbots.
Attention Mechanism
Directs model focus to relevant input words dynamically when generating target tokens in translation.
Self-Attention
Computes word interactions within the same sequence in parallel inside Transformer architectures.
Multi-Head Attention
Captures multiple semantic and syntactic relationships simultaneously across different representation subspaces.
Scaled Dot-Product Attention
Prevents small gradient magnitudes during softmax computation in large Transformer training runs.
Positional Encoding
Injects sequence order information into Transformer models since self-attention is permutation-invariant.
Transformer Architecture
Serves as the foundational neural backbone for modern foundation models and language generators.
Feed-Forward Layers (in Transformers)
Transforms attended token representations independently at each position to store factual knowledge.
Layer Normalization
Stabilizes hidden state dynamics across layers during the training of deep transformer networks.
Residual Connections
Prevents degradation and aids gradient flow through hundreds of layers in modern large language models.
Masked Language Modeling (MLM)
Pretrains bidirectional encoders like BERT by predicting obscured tokens in masked sentences.
Next Sentence Prediction (NSP)
Pretrains encoders to assess logical coherence between adjacent paragraphs in question-answering systems.
Autoregressive Language Modeling
Pretrains decoder-only models by generating text one token at a time from left to right.
BERT
Provides bidirectional contextual representations fine-tuned for classification, NER, and search ranking.
GPT
Generates human-like conversational responses and creative text through autoregressive scaling.
T5 (Text-to-Text Transfer Transformer)
Standardizes all NLP tasks into a unified text-to-text format for multi-task model training.
RoBERTa
Improves BERT performance on enterprise classification tasks via longer training and dynamic masking.
DistilBERT
Runs lightweight Transformer inference on mobile devices and latency-sensitive production environments.
Transfer Learning
Adapts general language knowledge from massive pretraining runs to niche domain-specific tasks.
Fine-Tuning
Updates all pretrained weights on domain data for specialized tasks like legal contract review.
Parameter-Efficient Fine-Tuning (PEFT)
Adapts foundation models cheaply to custom tasks without updating all base parameters.
LoRA (Low-Rank Adaptation)
Injects trainable rank decomposition matrices to fine-tune LLMs on consumer GPUs.
Instruction Tuning
Trains base language models to follow user prompts and commands rather than simply continuing text.
RLHF
Aligns model responses with human values to reduce toxicity and hallucinations in commercial chatbots.
Direct Preference Optimization (DPO)
Optimizes language model policy directly from human preference pairs without a separate reward model.
Prompt Engineering
Crafts structured user inputs to steer generative model outputs without retraining weights.
Few-Shot Prompting
Provides exemplar input-output demonstrations in the context window to improve task accuracy.
Chain-of-Thought (CoT) Prompting
Guides reasoning-heavy models through intermediate deductive steps to solve multi-step math problems.
In-Context Learning
Enables LLMs to perform new tasks during inference solely based on instructions provided in the prompt.
Hallucination
Identified and mitigated in factual question answering to prevent generation of fabricated claims.
Retrieval-Augmented Generation (RAG)
Injects retrieved external company documents into an LLM prompt to ground answers in factual data.
Vector Databases
Indexes and retrieves high-dimensional document embeddings for semantic search in RAG pipelines.
Cosine Similarity
Calculates semantic closeness between query embeddings and document embeddings in vector search.
Dense Retrieval
Retrieves documents based on semantic meaning rather than exact word matches in search engines.
Sparse Retrieval (BM25)
Ranks documents based on exact keyword frequencies, often combined with dense search in hybrid pipelines.
Reranking
Re-scores top retrieved document candidates using cross-encoders to improve precision in search pipelines.
Context Window
Limits how much input text and conversational history a language model can process in one query.
Quantization
Reduces model weight precision from 16-bit to 4-bit to deploy large models on resource-limited hardware.
Sentiment Analysis
Classifies customer reviews and social media comments as positive, negative, or neutral.
Intent Classification
Identifies the user goal in virtual assistants to route requests to the correct software function.
Slot Filling
Extracts specific task parameters, like flight dates or cities, from user dialogue in booking systems.
Topic Modeling (LDA)
Discovers latent thematic clusters across large document archives for automated content categorization.
Extractive Summarization
Pulls the most salient, unaltered sentences out of long reports for quick executive briefings.
Abstractive Summarization
Generates novel, paraphrased summaries of meeting transcripts and medical consultations.
Machine Translation
Automatically converts text from a source language to a target language for global localization.
Cross-Lingual Transfer
Applies NLP models trained on high-resource languages like English to lower-resource languages.
Text Generation
Drafts automated marketing copy, emails, and story prose based on descriptive prompts.
Question Answering (Extractive)
Pinpoints the exact span of text answering a question within a provided technical manual.
Question Answering (Generative)
Synthesizes an answer from multiple source passages to respond to customer support tickets.
Dialogue Systems
Manages multi-turn conversation state and strategy in enterprise customer service bots.
Text Classification
Tags incoming support tickets into departmental queues like billing, technical, or cancellation.
Spam Detection
Filters malicious or unwanted emails away from user inboxes using text classification techniques.
Grammar and Spell Checking
Detects and corrects syntax errors and orthographic typos in word processing software.
Keyphrase Extraction
Extracts representative search tags from scientific papers to enhance academic indexing.
Word Sense Disambiguation (WSD)
Determines the intended meaning of ambiguous words like bank in automated translation.
Semantic Role Labeling (SRL)
Identifies who did what to whom in legal proceedings and contract analysis.
Text-to-Speech (TTS)
Synthesizes spoken audio from normalized text strings in navigation systems and audiobooks.
Automatic Speech Recognition (ASR)
Transcribes spoken audio into raw text streams for voice assistants and meeting transcription.
Optical Character Recognition (OCR) Post-Correction
Fixes reading errors and misread characters in digitized historical books or paper receipts.
Knowledge Graph Completion
Predicts missing relationships between real-world entities extracted from unstructured news articles.
BLEU Score
Measures n-gram overlap between machine-translated sentences and human reference translations.
ROUGE Score
Evaluates recall of n-grams between machine-generated summaries and gold standard summaries.
Perplexity (PPL)
Assesses the confidence of a language model when predicting test sentences in pretraining experiments.
F1-Score (in NER/Classification)
Balances precision and recall to evaluate entity detection across imbalanced text classes.
Exact Match (EM)
Checks whether a predicted answer span matches ground truth character-for-character in QA benchmarks.