Skip to content
tezvyn:

NLP

50 bites tagged NLP — interview questions with model answers, and 60-second explainers.

UX Research1 min read

NLP pipeline to theme and tag research transcripts

Chunk and embed transcripts, cluster or LLM-tag for themes, run sentiment with aspect awareness, and keep a human in the loop. designing an NLP pipeline plus honest limits.

LLMs & Generative AI1 min read

Static vs contextual word embeddings

Static embeddings give one fixed vector per word ignoring context, contextual ones vary by sentence and resolve polysemy at higher compute cost. knowing how embeddings handle word sense.

LLMs & Generative AI1 min read

Reference-free evaluation for open-ended dialogue

ROUGE punishes valid paraphrases; use reference-free LLM-as-judge or learned scorers rating coherence, relevance, and groundedness. knowing why n-gram overlap fails for dialogue. defending ROUGE for open-ended generation.

Data Science & Analytics1 min read

Why Transformers use multi-head attention

A single head averages into one representation subspace; multiple heads attend in parallel to different subspaces, letting the model capture diverse relations like syntax and coreference at once, then… understanding of attention design.

Data Science & Analytics1 min read

Stemming versus lemmatization in text preprocessing

Stemming chops affixes fast but crudely, yielding non-words; lemmatization maps to real dictionary base forms using POS, slower but accurate; skip both for embedding or transformer models. NLP normalization trade-offs.

Data Science & Analytics2 min read

Transformer Architecture

The Transformer replaces recurrence with self-attention, letting every token directly attend to every other token in parallel. This enables long-range context and fast training on GPUs, making it the backbone of modern large language models and much of…

Content & Copywriting1 min read

Explain TF-IDF and its use in SEO analysis

Term frequency times inverse document frequency surfaces distinctive terms; comparing a draft to top-ranking pages reveals missing topical terms. understanding TF-IDF and content gaps.

Content & Copywriting1 min read

TF-IDF Analysis

TF-IDF weights a term by how often it appears in a document against how rare it is across the corpus, surfacing words distinctive to that document rather than ones common everywhere, which powers keyword extraction and search ranking.

LLMs & Generative AI2 min read

Layer Norm and Residuals in Transformer Blocks

Residuals preserve gradient flow, layer norm stabilizes activations per token, and it beats batch norm because it is independent of batch and sequence length. how Transformer blocks stay trainable at depth.

LLMs & Generative AI1 min read

Why Multi-Head Attention

Multiple heads attend to different subspaces and relations in parallel, which one big head averages away. rationale for splitting attention into heads. claiming more heads is always better or that it raises total compute.

LLMs & Generative AI2 min read

Self-Attention versus Recurrent Architectures

Each token attends to all others via query-key-value, enabling parallelism and direct long-range links. understanding self-attention and its edge over RNNs.

LLMs & Generative AI1 min read

Attention in Sequence-to-Sequence Models

Attention computes per-step weighted sums over all encoder states, fixing the information bottleneck for long inputs. why attention beats a fixed context vector. describing attention but never naming the bottleneck it solves.

LLMs & Generative AI2 min read

Transformer Encoder-Decoder Architecture

The encoder-decoder Transformer maps an input sequence into rich contextual representations with an encoder, then a decoder generates output tokens autoregressively while attending to those representations via cross-attention, making it ideal for…

LLMs & Generative AI2 min read

Masked Language Modeling: Fill-in-the-Blank Pretraining

MLM hides random tokens and trains the model to reconstruct them from context. It powers BERT-style encoders for classification and search. The catch is that it never learns left-to-right generation, so it needs extra machinery for open-ended text.

LLMs & Generative AI2 min read

Transformer Encoder Block

A Transformer encoder block mixes full sequence context in parallel: every token attends to all others to refine its vector. It drives bidirectional models like BERT. The footgun is using it unmasked for generation, which leaks future information.

LLMs & Generative AI2 min read

Tokenization and Input Embeddings in LLMs

Tokenization splits language into tokens, and embeddings map token IDs into vectors with meaning. Every transformer does this first. The footgun is assuming one token equals one word—token counts behave unpredictably when words merge or split.

iOS & Swift2 min read

Apple's Natural Language Framework

Apple's Natural Language Framework turns raw strings into structured meaning on-device without network calls. Tokenize queries or extract entities from user text locally. It is not infallible; heavy synchronous tagging on the main thread freezes your UI.

Data Science & Analytics2 min read

How do you leverage and fine-tune BERT for niche classification?

Tests transfer learning with scarce labels. Outline: pick a domain-adjacent checkpoint, add a classification head, use learning rates near 2e-5 with early stopping, and stratify tiny validation splits.

Data Science & Analytics2 min read

What is a word embedding and how does it beat one-hot encoding?

Tests dense semantic vectors versus sparse one-hot representations. A good answer defines embeddings as learned real-valued vectors where similar words are close, contrasts them with orthogonal one-hot vectors lacking similarity, and names Word2Vec or GloVe.

Content & Copywriting2 min read

How would you use NLP to analyze top articles for semantic themes?

This tests practical NLP pipeline design for SEO. A strong answer covers preprocessing, NER with spaCy or BERT, topic modeling with LDA or BERTopic, and semantic similarity via embeddings.

Content & Copywriting2 min read

How would you technically approach building a related articles feature?

Tests decomposition of a content recommender into data, similarity, and serving layers. Strong answers use TF-IDF, embeddings, or tag overlap with caching and cold-start fallbacks.

Content & Copywriting2 min read

Propose an NLP approach to audit brand voice and build a dashboard

This tests turning brand principles into measurable NLP features. A strong answer uses readability for simplicity and agency verbs for empowerment, scores copy via LLM classifiers, and visualizes trends by product area.

Content & Copywriting2 min read

Outline an NLP pipeline to categorize reviews and identify pain points

Tests text mining pipeline design. Answers cover deduplication and normalization, then clustering or topic modeling for categories, plus sentiment analysis to rank pain points. Red flag: skipping validation or jumping to LLMs without cleaning.

LLMs & Generative AI2 min read

Evaluating RAG Systems: Metrics for Retrieval and Generation

Evaluating a RAG system means grading its two parts: retrieval and generation. Metrics like relevance check if the right documents were found, while faithfulness and accuracy check if the final answer correctly uses those documents.

Get NLP bites daily.

Five a day, five minutes, offline. With quizzes so it sticks.

Open testing — you’ll join as an early tester.