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.

MediumTechnical
21 practiced

Explain static word embeddings (Word2Vec, GloVe) versus contextualized embeddings (ELMo, BERT). For a classification task on domain-specific documents, what trade-offs would push you to choose static embeddings over contextual embeddings or vice versa?

MediumTechnical
20 practiced

Write a Python function that takes a list of raw user review texts and returns a cleaned, tokenized representation suitable for modeling, together with a corpus-level term-frequency table. Decide how to treat URLs, emails, emojis, stopwords and inflected word forms, and let the caller drop rare terms. Show example input and output and discuss how it scales to large inputs.

EasyTechnical
33 practiced

You have 2,000 open-ended survey responses and need recurring themes quickly and reproducibly using TF-IDF and clustering. Outline the pipeline, how you pick the number of themes, and how you label them for business stakeholders.

EasyTechnical
19 practiced

Which evaluation metrics would you use for the main NLP task families (classification, tagging, translation, summarization, language modeling)? When does corpus-level versus sentence-level scoring matter, and what pitfalls do you watch for when interpreting the numbers?

MediumTechnical
18 practiced

You are building an intent classifier for customer support messages with a low-latency requirement. How do you handle noisy text and typos, create labels, choose between a fine-tuned transformer and a classical model, and handle skewed intent frequencies?

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.