InterviewStack.io LogoInterviewStack.io

Natural Language Processing Questions

Techniques for representing and modeling human language. Covers tokenization, embeddings, text classification, sequence labeling, and language-model-based approaches, along with practical deployment and efficiency concerns for NLP systems. Emphasizes core NLP building blocks that predate and feed into generative language models.

EasyTechnical
20 practiced

Explain tokenization in NLP and compare word-level, character-level, and subword tokenization. For each type, describe typical use cases, advantages and disadvantages, and runtime/space implications when processing user-generated text (e.g., social media with emojis and typos).

MediumTechnical
16 practiced

Describe strategies to handle out-of-vocabulary (OOV) words at inference time for both static embeddings and subword-based tokenizers. Which strategies are most effective for low-resource languages with limited token vocabularies and noisy orthography?

EasyTechnical
19 practiced

Briefly describe the skip-gram formulation of Word2Vec and the role of negative sampling in training. What problem does negative sampling solve, and how does it change computational cost compared to a full softmax over a large vocabulary?

HardTechnical
22 practiced

Describe a streaming inference approach for transformer-based autocomplete over long contexts: explain incremental encoding, using the transformer key-value cache for autoregressive decoding, memory management for growing contexts, and how to handle user edits (cursor moves, token deletions) efficiently without re-encoding the entire context.

HardSystem Design
23 practiced

Design a comprehensive monitoring system for NLP models that detects data drift, label drift, concept drift, and performance regressions. Include concrete metrics to track, statistical tests to use, alerting thresholds, automatic vs human-in-the-loop retraining triggers, and data retention for audits.

Unlock Full Question Bank

Get access to all Natural Language Processing interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.