Lexical, Syntactic and Semantic processing Interview Questions
๐ง Lexical Processing (Q1–Q17)
Lexical processing focuses on individual words and their forms.
๐น Questions & Answers
What is lexical analysis in NLP?
→ It breaks text into tokens (words, punctuation) for further processing.Define tokenization.
→ Splitting text into meaningful units like words or sentences.What is stemming?
→ Reducing words to their root form (e.g., “running” → “run”).What is lemmatization?
→ Mapping words to their dictionary root using linguistic rules.Difference between stemming and lemmatization?
→ Stemming is rule-based and faster; lemmatization is more accurate and context-aware.What are stop words?
→ Common words (e.g., “the”, “is”) removed to reduce noise.What is a corpus?
→ A large collection of text used for training NLP models.What is a vocabulary in NLP?
→ The set of unique tokens in a corpus.What is n-gram modeling?
→ A sequence of n words used to capture context (e.g., bigrams, trigrams).What is frequency distribution?
→ A count of how often each token appears.What is Zipf’s Law?
→ In natural language, the frequency of any word is inversely proportional to its rank.What is TF-IDF?
→ Term Frequency–Inverse Document Frequency, used to weigh word importance.What is word normalization?
→ Converting words to a standard format (e.g., lowercase, removing punctuation).What is text cleaning?
→ Removing noise like HTML tags, emojis, or special characters.What is a tokenizer in spaCy or NLTK?
→ A tool that splits text into tokens using language-specific rules.What is subword tokenization?
→ Breaking words into smaller units (e.g., Byte Pair Encoding).What is out-of-vocabulary (OOV)?
→ Words not present in the training vocabulary.
๐งฉ Syntactic Processing (Q18–Q33)
Syntactic processing deals with grammar and sentence structure.
๐น Questions & Answers
What is syntactic analysis?
→ Parsing sentences to understand grammatical structure.What is POS tagging?
→ Assigning part-of-speech labels (noun, verb, etc.) to words.What is a parse tree?
→ A tree structure representing sentence grammar.What is dependency parsing?
→ Identifying relationships between words (e.g., subject → verb).What is constituency parsing?
→ Dividing sentences into sub-phrases like noun phrases (NP) and verb phrases (VP).What is a context-free grammar (CFG)?
→ A set of rules defining valid sentence structures.What is chunking?
→ Grouping tokens into meaningful phrases (e.g., noun chunks).What is shallow parsing?
→ Identifying phrases without full syntactic structure.What is POS ambiguity?
→ When a word can have multiple POS tags depending on context.What is a syntax error in NLP?
→ A violation of grammatical rules in a sentence.What is a universal POS tagset?
→ A standardized set of POS tags used across languages.What is morphological analysis?
→ Studying word structure (prefixes, suffixes, roots).What is a language model?
→ A model that predicts the next word in a sequence.What is the role of syntax in machine translation?
→ Ensures grammatical correctness in translated output.What is syntactic ambiguity?
→ When a sentence has multiple valid grammatical interpretations.What is a parser?
→ A tool that builds syntactic structure from text.
๐ง Semantic Processing (Q34–Q50)
Semantic processing extracts meaning from text.
๐น Questions & Answers
What is semantic analysis?
→ Understanding the meaning of words, phrases, and sentences.What is Named Entity Recognition (NER)?
→ Identifying entities like names, dates, and locations.What is word sense disambiguation (WSD)?
→ Determining the correct meaning of a word in context.What is semantic similarity?
→ Measuring how similar two texts are in meaning.What is sentiment analysis?
→ Classifying text as positive, negative, or neutral.What is semantic role labeling (SRL)?
→ Identifying roles like agent, action, and object in a sentence.What is co-reference resolution?
→ Linking pronouns to the entities they refer to.What is entailment in NLP?
→ Determining if one sentence logically follows from another.What is a knowledge graph?
→ A structured representation of entities and their relationships.What is a semantic parser?
→ Converts natural language into machine-readable meaning representations.What is polysemy?
→ A word with multiple related meanings (e.g., “bank”).What is homonymy?
→ A word with multiple unrelated meanings (e.g., “bat”).What is lexical semantics?
→ Study of word meanings and relationships.What is distributional semantics?
→ Inferring meaning from word usage patterns in context.What is embedding in NLP?
→ Vector representation of words capturing semantic meaning.What is contextual embedding?
→ Word vectors that change based on surrounding context (e.g., BERT).What is semantic drift?
→ Change in word meaning over time or across domains.
๐ง Lexical Processing (Word-Level Analysis)
Lexical processing deals with individual words—their structure, meaning, and role in a sentence.
๐ค Questions & Answers
What is lexical analysis in NLP?
It involves breaking down text into tokens (words, punctuation, etc.) and identifying their lexical categories.What is tokenization?
It's the process of splitting text into individual units like words or sentences.What is stemming?
Reducing words to their root form (e.g., "running" → "run").What is lemmatization?
Similar to stemming but uses vocabulary and morphological analysis to return the base form (e.g., "better" → "good").Difference between stemming and lemmatization?
Stemming is rule-based and faster; lemmatization is dictionary-based and more accurate.What is a lexicon in NLP?
A collection of words and their meanings or properties.What is part-of-speech tagging?
Assigning grammatical categories (noun, verb, etc.) to each word.How does POS tagging help in NLP?
It aids in syntactic parsing, named entity recognition, and semantic analysis.What are stop words?
Common words (like "the", "is") that are often removed during preprocessing.What is word segmentation?
Dividing text into meaningful words, especially in languages without spaces (e.g., Chinese).
๐งฉ Syntactic Processing (Grammar & Structure)
Syntactic processing focuses on sentence structure and grammatical relationships.
๐ง Questions & Answers
What is syntactic analysis?
It checks if the sentence structure conforms to grammar rules.What is parsing in NLP?
Analyzing sentence structure to determine relationships between words.What is a parse tree?
A tree diagram representing the syntactic structure of a sentence.What is dependency parsing?
It identifies relationships between words (e.g., subject → verb).What is constituency parsing?
It breaks a sentence into sub-phrases (noun phrase, verb phrase, etc.).What is POS ambiguity?
When a word can belong to multiple parts of speech (e.g., "book" as noun or verb).What is syntax in NLP?
Rules that govern sentence structure and word order.How does syntactic processing differ from semantic processing?
Syntax is about structure; semantics is about meaning.What is chunking in NLP?
Grouping words into meaningful phrases (e.g., noun phrases).What are CFGs (Context-Free Grammars)?
Formal grammar rules used to define syntactic structure.
๐ง Semantic Processing (Meaning & Context)
Semantic processing aims to understand the meaning of text.
๐ง Questions & Answers
What is semantic analysis in NLP?
Understanding the meaning of words, phrases, and sentences.What is named entity recognition (NER)?
Identifying proper nouns like names, places, and organizations.What is word sense disambiguation?
Determining the correct meaning of a word based on context.What is semantic role labeling?
Identifying the role played by words in a sentence (e.g., agent, action, object).What is co-reference resolution?
Linking pronouns and noun phrases to the same entity.What is sentiment analysis?
Determining the emotional tone of text.What is a semantic network?
A graph representing relationships between concepts.What is distributional semantics?
Inferring word meaning based on surrounding words.What is a knowledge graph?
A structured representation of entities and their relationships.What is semantic similarity?
Measuring how similar two pieces of text are in meaning.
๐งช Advanced & Applied Questions
How do embeddings help in semantic processing?
They convert words into vectors capturing semantic relationships.What is the role of transformers in semantic analysis?
They capture long-range dependencies and contextual meaning.How does BERT improve semantic understanding?
BERT uses bidirectional context to better understand word meaning.What is the difference between lexical and semantic ambiguity?
Lexical ambiguity is word-level; semantic ambiguity is sentence-level.How is semantic parsing different from syntactic parsing?
Semantic parsing maps text to meaning representations; syntactic parsing maps to grammar trees.What is entailment in NLP?
Determining if one sentence logically follows from another.What is pragmatic analysis?
Understanding meaning based on context and speaker intent.What is discourse analysis?
Studying language beyond individual sentences—e.g., conversation flow.What is the role of ontologies in semantic processing?
They define concepts and relationships for domain-specific understanding.How does semantic search differ from keyword search?
Semantic search understands intent and meaning; keyword search matches exact terms.
๐ง Bonus: Interview-Style Conceptual Questions
Explain the NLP pipeline from lexical to semantic processing.
Tokenization → POS tagging → Parsing → Semantic analysis → Output.How do you handle ambiguity in NLP?
Use context-aware models like BERT or apply disambiguation algorithms.What are challenges in semantic processing?
Ambiguity, sarcasm, idioms, and context sensitivity.How does semantic processing help in chatbots?
It enables understanding of user intent and generating meaningful responses.What is the role of embeddings in semantic similarity?
Embeddings capture contextual meaning, enabling similarity comparisons.How do you evaluate semantic models?
Using metrics like BLEU, ROUGE, cosine similarity, and human evaluation.What is the difference between syntax-based and semantics-based models?
Syntax-based models focus on structure; semantics-based models focus on meaning.How does semantic processing help in question answering systems?
It enables understanding of both the question and relevant context.What is the role of semantic parsing in RAG pipelines?
It helps convert natural language queries into structured formats for retrieval.How do you integrate lexical, syntactic, and semantic layers in a real-world NLP system?
Through a modular pipeline or transformer-based models that encode all layers jointly.
Comments
Post a Comment