InterviewStack.io LogoInterviewStack.io

Natural Language Processing Fundamentals Questions

Foundational knowledge of Natural Language Processing including how text is represented and processed, common tasks, model classes, and practical tooling. Core concepts include tokenization and subword segmentation, embedding representations and word vector methods such as Word2Vec and GloVe, attention mechanisms, sequence to sequence models, recurrent neural networks, and transformer based architectures. Common tasks to understand include text classification, sentiment analysis, named entity recognition, and machine translation. Candidates should be able to explain how pretrained transformer models are used conceptually, trade offs between model types, basic training and evaluation approaches for language tasks, and practical experience or familiarity with common libraries and toolkits used in the field.

MediumTechnical
17 practiced
Compare using pretrained GloVe embeddings vs contextual embeddings (BERT) for a small CPU-deployed classification task. Discuss memory and latency implications, adaptability to new domains, fine-tuning overhead, inference complexity, and expected accuracy trade-offs. Recommend a deployment approach given limited compute.
MediumTechnical
19 practiced
For an on-device sentiment classifier with strict latency and memory constraints, compare deploying a small LSTM-based model vs a distilled transformer (DistilBERT). Discuss parameter counts, quantization friendliness, runtime parallelism, expected accuracy trade-offs, and developer effort for optimization on CPU-only devices.
HardSystem Design
22 practiced
Design a Retrieval-Augmented Generation (RAG) system for knowledge-grounded QA over a company KB of 10M documents. Include choices for embedding model, ANN index (FAISS/ScaNN/Vector DB), index update strategy (near-real-time), re-ranker, generator model, caching, latency budgets, and measurements to ensure factuality and reduce hallucinations.
HardTechnical
16 practiced
Design an evaluation framework for abstractive summarization that goes beyond ROUGE to measure fluency, relevance, and factuality. Propose automated checks (QA-based factuality detection, entailment models), a human-eval protocol (rubrics, sampling, IAA), and how to combine automated signals into a monitoring dashboard to detect model regressions and hallucinations.
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.

Unlock Full Question Bank

Get access to hundreds of Natural Language Processing Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.