Natural Language Processing Questions

Core natural language processing building blocks: text preprocessing and tokenization (word, character, subword BPE/WordPiece/unigram, multilingual, Unicode and noisy user-generated text), word and sentence embeddings (Word2Vec, GloVe, contextual embeddings, pooling and semantic similarity search), text classification, sentiment and intent detection (including limited labels, active learning and long documents), sequence labeling and named entity recognition (BIO tagging, CRFs, relation extraction, slot filling and semantic parsing), sequence-to-sequence models and machine translation (teacher forcing, exposure bias, beam search, BLEU, low-resource and cross-lingual transfer), topic modeling and theme extraction, language-model basics such as perplexity, and fine-tuning pretrained encoders like BERT for NLP tasks, including task-appropriate evaluation metrics, annotation and error analysis. Excludes transformer architecture internals, LLM pretraining and decoding behavior, retrieval-augmented generation and vector index engineering, parameter-efficient fine-tuning, and model serving or MLOps.

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?

HardSystem Design
21 practiced

Design a multi-stage semantic parsing pipeline: intent detection → slot filling → canonicalization → executable plan. For each stage, recommend model types, training data requirements, evaluation metrics, and techniques to handle error propagation between stages.

MediumTechnical
29 practiced

In an NER dataset the 'O' tag makes up the vast majority of tokens. How does that imbalance hurt training and evaluation, and what would you do about it?

MediumTechnical
18 practiced

You're building a tokenizer for Chinese and Japanese text for NER. Compare character-level tokenization, lexicon-based word segmentation (e.g., Jieba/MeCab), and subword tokenization (SentencePiece). Discuss impacts on vocabulary size, alignment to entity spans, and handling of OOV terminology.

HardTechnical
16 practiced

You must train a translation model for target languages with very little parallel data. What would you do to improve quality, and how would you decide which approaches to try first?

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.