Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.
Natural Language Processing important questions with answers
Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The topics are chosen from the syllabus.
Q1. Levels of NLP, ambiguity and computational challenges
From the syllabus · Unit 1
From the papers
“Unit 1: Introduction to various levels of NLP, ambiguities and computational challenges.” (Syllabus)
The short answer
The levels of NLP are steps from sound or characters up to meaning in use: lexical, syntactic, semantic, discourse and pragmatic. Ambiguity at each level is the main computational challenge.
Write these points
Levels
Lexical and morphological: words and their parts.
Syntactic: how words form phrases and sentences.
Semantic: the meaning of words and sentences.
Discourse: how sentences link, for example pronoun reference.
Pragmatic: meaning in the situation, such as a polite request.
Ambiguity and challenges
Lexical: bank is a money place or a river side.
Syntactic: I saw the man with a telescope has two parses.
Semantic and pragmatic: Can you open the window? asks for an action.
Other challenges: spelling mistakes, slang, mixed languages such as Hinglish, free word order in Indian languages. Many languages also have little labelled data.
One sentence at three levels.
Sentence: Time flies like an arrow.
Lexical: flies is a noun or a verb. Syntactic: time may be the subject or a command verb.
Without context a program cannot choose. A person uses common sense.
Real-life example
When you ask a voice assistant to call Maa, it must find the right contact. It must also read the request as an action. Each level of NLP handles one such task. A mistake at an early level spoils the later ones.
Same or opposite: lexical and syntactic ambiguity
Point
Lexical ambiguity
Syntactic ambiguity
Same or opposite
Source
A word with many senses
A sentence with many parses
Opposite
Example
bank
saw a man with a telescope
Opposite
Solved by context
Yes
Yes
Same
Appears in every language
Yes
Yes
Same
Exam tip. List the five levels in order. Give one ambiguity example for each of three levels. Close with two challenges for Indian languages.
“Unit 1: Real life applications of NLP such as spell and grammar checkers, information extraction, question answering, machine translation.” (Syllabus)
The short answer
Common real life applications of NLP are spell and grammar checkers, information extraction, question answering and machine translation.
Write these points
Applications
Spell and grammar checker: finds a wrong word with edit distance and a dictionary. A grammar checker uses a language model or rules.
Information extraction: pulls names, dates and relations out of text into a table.
Question answering: returns a short answer from documents.
Machine translation: converts text from one language to another.
Other uses: summaries, sentiment analysis, chat bots, voice typing.
Spell check by edit distance.
Typed word: recieve. Dictionary word: receive.
Edit distance is the least number of insert, delete or replace steps. Here it is 2 (swap of i and e counts as two replacements).
The checker lists dictionary words within distance 2 and ranks them by how common they are.
Information extraction in short
Input: Ravi joined Infosys in Pune on 5 May.
Output row: person Ravi, company Infosys, city Pune, date 5 May.
Real-life example
Gmail suggests a correction when you type recieve. Google Translate turns a Hindi sentence into English. A bank chat bot answers What is my balance? from a database. These are the four applications in daily use.
Same or opposite: information extraction and question answering
Point
Information extraction
Question answering
Same or opposite
Output
Table of facts
One answer
Opposite
Driven by
Fixed fields
A user question
Opposite
Reads unstructured text
Yes
Yes
Same
Uses entity recognition
Yes
Often
Same
Exam tip. Give one line and one real product for each application. Show the edit distance step for the spell checker. This one number shows understanding.
Character encoding maps each character to a number and then to bytes. Unicode gives every character one code point and UTF-8 stores it in 1 to 4 bytes.
Write these points
Key ideas
ASCII uses 7 bits for 128 English characters. It cannot hold Hindi.
Unicode assigns a code point to each character of all major scripts, written U+0905 for the Hindi letter A.
UTF-8 is variable length. English letters take 1 byte, so it is compatible with ASCII.
UTF-16 uses 2 or 4 bytes. Wrong encoding gives garbled text, called mojibake.
For NLP: read and write files in UTF-8 and normalise text, because one letter can be written in more than one way.
Character
Code point
UTF-8 bytes
Count
A
U+0041
41
1
é
U+00E9
c3 a9
2
अ
U+0905
e0 a4 85
3
₹
U+20B9
e2 82 b9
3
Length of a Hindi word.
The word भारत has 4 characters. In UTF-8 each takes 3 bytes, so the size is 12 bytes.
A program that counts bytes instead of characters will report 12 and cut words in the middle.
Real-life example
When a WhatsApp message in Hindi shows as question marks on an old phone, the phone used the wrong encoding. Unicode fixes this by giving one number to each letter. Every modern app now stores text in UTF-8.
Same or opposite: ASCII and Unicode
Point
ASCII
Unicode
Same or opposite
Characters covered
128
Over 140,000
Opposite
Hindi letters
No
Yes
Opposite
Maps characters to numbers
Yes
Yes
Same
English part is the same
Yes
Yes
Same
Exam tip. Draw the small table of characters with their bytes. State that UTF-8 matches ASCII for English. Mention the Hindi example to show a script outside ASCII.
“Unit 2: Word segmentation, sentence segmentation.” (Syllabus)
The short answer
Word segmentation splits text into words and sentence segmentation splits it into sentences. Both look simple in English and are hard in some cases.
Write these points
Word segmentation (tokenization)
In English, split on spaces and punctuation. Special cases: do not, U.S.A., 3.14, email and web addresses.
Chinese and Thai have no spaces between words. A dictionary or a model finds the breaks.
German joins words into long compounds. Hindi has clitics written with a space or joined, so rules vary.
Sentence segmentation
A full stop usually ends a sentence. It can also end an abbreviation (Dr., p.m.) or sit inside a number.
Rules use the next word: a capital letter after a stop is a hint.
A classifier can learn from features such as the word before the stop and its length.
A simple rule fails.
Text: Dr. Rao met Mr. Singh at 5 p.m. on Monday. They left.
Rule: split after a stop followed by a space and a capital letter.
Result: the rule cuts after Dr. and after Mr. and gives 4 pieces. The correct count is 2 sentences.
Fix: keep a list of abbreviations and do not split after them.
Real-life example
A news app that makes short summaries must find where each sentence ends. If it cuts after Dr. the summary shows half a sentence. A list of known abbreviations prevents this.
Same or opposite: word and sentence segmentation
Point
Word segmentation
Sentence segmentation
Same or opposite
Unit found
Token
Sentence
Opposite
Main clue
Space and punctuation
Full stop and capital
Opposite
Needs rules for special cases
Yes
Yes
Same
Hard in some scripts
Yes
Less
Opposite
Exam tip. Give the failing text and show the wrong and right count. The example proves that you know the exception. Add one non-English case for word breaks.
“Unit 2: Introduction to corpora, corpora analysis.” (Syllabus)
The short answer
A corpus is a large collection of real text kept in digital form. Corpus analysis counts and studies the text to learn how words behave.
Write these points
Corpus
It can be raw or annotated with tags, parse trees or senses.
It can be balanced (many genres) or special (news only, medical only).
Examples: Brown corpus, Penn Treebank. Hindi news sites give raw Hindi corpora.
Uses: train taggers and language models, test systems and build dictionaries.
Corpus analysis
Tokens and types: tokens are all words, types are the different words.
Type token ratio = types / tokens.
Frequency list: the most common words are mostly function words such as the and of.
Zipf law: frequency is about 1 / rank. The word at rank 10 is about half as common as the one at rank 5.
Concordance: shows a word with its neighbours.
Counting a tiny corpus.
Text: the cat sat on the mat the dog sat on the log.
Tokens = 12. Types = 7. Type token ratio = 7 / 12 = 0.583.
Most common: the 4, sat 2, on 2.
Real-life example
A publisher building a Hindi spell checker first collects thousands of news articles. Counting word frequencies tells which words are common enough to put in the dictionary. This count is corpus analysis.
Same or opposite: raw and annotated corpus
Point
Raw corpus
Annotated corpus
Same or opposite
Content
Plain text
Text with labels
Opposite
Cost to build
Low
High
Opposite
Used for counting words
Yes
Yes
Same
Used to train taggers
No
Yes
Opposite
Exam tip. Define tokens and types and show the count with a small text. State Zipf law in one line. Name one annotated corpus.
Q6. Inflectional and derivational morphology, analysis with FSTs
From the syllabus · Unit 3
From the papers
“Unit 3: Inflectional and derivation morphology, morphological analysis and generation using finite state transducers.” (Syllabus)
The short answer
Inflection changes the form of a word without changing its class and derivation builds a new word. Finite state transducers (FSTs) do morphological analysis and generation.
Write these points
Two kinds of morphology
Inflectional: walk, walks, walking. Marks tense, number, case and gender.
Derivational: teach, teacher, teachable. Often changes the class.
Hindi inflects heavily: ladka, ladke, ladki, ladkiyan.
Analysis and generation with an FST
Analysis: surface form to lexical form. Example: cities to city +N +PL.
Generation: the reverse. city +N +PL to cities.
A lexicon FST holds the stems. Spelling rule FSTs make changes such as y to ie.
The machines are joined (composed) into one machine that works in both directions.
def plural(w):
if w.endswith(('s','x','z','ch','sh')): return w + 'es'
if w.endswith('y') and w[-2] not in 'aeiou': return w[:-1] + 'ies'
return w + 's'
# cat->cats box->boxes city->cities boy->boys church->churches
Generate: fox +N +PL.
The stem is fox. The plural marker is s. The spelling rule says insert e after x before s.
Output: foxes.
Real-life example
A railway site in Hindi must treat gaadi and gaadiyan as the same word when you search. A morphological analyser maps both to the stem. The same tool can produce the right form when the site writes a reply.
Same or opposite: analysis and generation
Point
Analysis
Generation
Same or opposite
Input
Surface word
Stem and tags
Opposite
Output
Stem and tags
Surface word
Opposite
Uses the same FST
Yes
Yes
Same
Uses spelling rules
Yes
Yes
Same
Exam tip. Define both kinds of morphology with two words each. Draw the FST with an input and output label on each arc. Show one analysis and one generation.
“Unit 3: Introduction to word types, POS tagging.” (Syllabus)
The short answer
A word type is a part of speech class such as noun or verb. POS tagging assigns one tag to each word in context.
Write these points
Word types
Open classes take new words: nouns, verbs, adjectives, adverbs.
Closed classes have a fixed small set: pronouns, prepositions, determiners, conjunctions.
Tag sets: the Penn Treebank set has 45 tags such as NN, VB, JJ, DT.
The same word has different tags in different places: book in Book a ticket and Read a book.
Tagging in short
Rule-based: lexicon plus rules that remove wrong tags.
Statistical: HMM or MaxEnt chooses the most likely tag sequence.
A baseline of the most frequent tag per word is about 90 percent right on English news text. Good taggers reach about 97 percent.
Tag a sentence.
Ram/NNP eats/VBZ ripe/JJ mangoes/NNS.
Open class words: Ram, eats, ripe, mangoes. A closed class word would be the.
Real-life example
A grammar app that reads She books a ticket marks books as a verb. It then checks that the verb agrees with she. Tagging comes before such checks.
Same or opposite: open and closed word classes
Point
Open class
Closed class
Same or opposite
New members
Added often
Rarely
Opposite
Examples
Noun, verb
Pronoun, preposition
Opposite
Needed for tagging
Yes
Yes
Same
Size
Large
Small
Opposite
Exam tip. Name the tag set, then tag one sentence word by word. State the ambiguity example with book. Mention the baseline so that the examiner sees you know accuracy levels.
“Unit 3: Maximum entropy models for POS tagging.” (Syllabus)
The short answer
A Maximum Entropy model for POS tagging scores each possible tag from weighted features of the word and its context. It picks the highest.
Write these points
How it tags
Features: the word itself, its suffix, a capital letter, the previous tag and the next word.
Model: P(tag | context) = exp(sum of weights for active features) / Z. Z is the sum over all tags.
Training: find weights that match the counts seen in the tagged corpus.
Decoding: tag left to right with beam search, or use Viterbi over tag sequences.
Benefit: many overlapping features, unlike a plain HMM.
Score two tags for a word.
Active features: ends in s and previous word is the. Weights for N: 0.2 and 1.5. For V: 0.9 and minus 1.0.
exp(1.7) = 5.47 for N and exp(minus 0.1) = 0.905 for V. Z = 6.38.
P(N) = 0.858 and P(V) = 0.142. The tag is N.
Remember. The weights above are made up to show the working. A real model learns them from data.
Real-life example
Think of a quiz in which the judge adds points for each clue: a capital letter, an ending s, a the before it. The option with the most points wins. A MaxEnt tagger scores tags in the same way.
Same or opposite: MaxEnt tagger and HMM tagger
Point
MaxEnt tagger
HMM tagger
Same or opposite
Model type
Discriminative
Generative
Opposite
Uses rich features
Yes
Limited
Opposite
Needs a tagged corpus
Yes
Yes
Same
Gives a probability per tag
Yes
Yes
Same
Exam tip. Write the formula, then show the exp and Z steps with numbers. State why features may overlap. Keep the working in a table or neat lines.
A high value says the words appear together far more than by chance.
Real-life example
A Hindi to English tool that turns aankhon ka tara word by word gets stars of eyes. The correct reading is a dear child. The tool needs a list of such phrases to translate them as one unit.
Same or opposite: idiom and collocation
Point
Idiom
Collocation
Same or opposite
Meaning from the words
No
Yes, mostly
Opposite
Can swap a word
No
Sometimes
Opposite
Fixed in common use
Yes
Yes
Same
Hard for translation tools
Yes
Yes
Same
Exam tip. Give six types with one example each. Show the PMI formula with the worked numbers. State that translation is the main problem.
The suggestion strip on a phone keyboard shows tea after I like. It looked at what words followed in your earlier messages. This guess is a bigram model at work.
Same or opposite: trigram and bigram model
Point
Trigram
Bigram
Same or opposite
Words of context
Two
One
Opposite
Data needed
More
Less
Opposite
Uses counts from a corpus
Yes
Yes
Same
Needs smoothing
Yes
Yes
Same
Exam tip. Write the chain rule, then the bigram estimate, then the worked sentence. Mention applications in a line. Keep the counts visible.
What are the most important topics in Natural Language Processing?
No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Levels of NLP, ambiguity and computational challenges; Real life applications of NLP; Character encoding; Word and sentence segmentation; Corpora and corpus analysis.
How were these Natural Language Processing important questions chosen?
Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Natural Language Processing important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Natural Language Processing is free to download from this page.
The 10 topics of Natural Language Processing (IT-802-B) for RGPV B.Tech IT semester 8, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.