Natural Language Processing · TEE · papers

Q2b · NLP applications and limitations

2024-02-12 · re-exam · recovered AI paper

Previous examination · complete worked answers

Question. List NLP applications and explain limitations of NLP. [10 marks]

Answer

Natural language processing (NLP) is the field concerned with computational methods for analysing, interpreting and generating human language. Natural languages such as English, Hindi and Marathi evolved through human use; their meanings are not specified by the rigid rules of a programming language.

An NLP system may receive text, speech converted to text, or another linguistic representation. Its output depends on the task: a category, a tag for every word, a translated sentence, a ranked document list or a generated answer. It does not always “understand” in the human sense; its performance must be evaluated for the specific task.

TaskInputOutput
Sentiment analysis“The service was excellent.”Positive sentiment
Text classificationAn emailSpam / not spam
POS tagging“Birds fly.”Birds/NOUN fly/VERB
Named entity recognition“Asha joined Google in Mumbai.”Asha: person; Google: organisation; Mumbai: location
Machine translationA Hindi sentenceA corresponding English sentence
Information retrievalA search queryRanked relevant documents
Question answeringQuestion plus knowledge/contextAn answer
SummarizationA long articleA shorter text preserving key information

How NLP relates to AI, ML and DL

AI is the broader study of systems performing tasks associated with intelligent behaviour. Machine learning learns patterns from data. Deep learning uses multiple trainable neural layers. NLP is an application/research field that can use hand-written rules, statistical ML or deep learning. Therefore, not every NLP system is a neural network.

Linguistics supplies knowledge about language structure. Statistics supplies uncertainty models. Computer science supplies algorithms, storage and efficient implementation. A practical NLP system combines these ideas.

NLP = human language ko computational task mein badlo: label, meaning, search ya generated sentence.

Ambiguity means an expression supports more than one interpretation. Good exam answers name the ambiguity and explain both readings.

ChallengeExampleWhy a system can fail
Lexical/sense ambiguitybank: finance or river edgeOne written word has several senses
Syntactic ambiguityI saw the man with a telescope.The telescope may modify saw or the man
Reference ambiguityRiya told Neha that she won.She may refer to either person without more context
SarcasmGreat, another delay.Literal positive word conveys frustration
NegationThe film was not good.Dropping not reverses meaning
Domain shift“Positive” in a medical reportMeaning/use differs by domain
Code mixingKal meeting reschedule karna.Several languages and spelling conventions
Noisy texttmrw, repeated letters, typosVocabulary/token boundaries become uncertain
Low-resource settingFew labelled examples in a languageModels lack representative training evidence
Bias and privacySkewed data or personal detailsErrors and harms can persist in deployed systems

Homophones sound alike but may differ in spelling (pair/pear). Homographs share spelling but can differ in meaning or pronunciation (lead the team / lead metal). These are different dimensions from syntactic ambiguity.

Long-distance dependencies, cultural knowledge, idioms, morphology and multilingual writing systems also complicate processing. For “kick the bucket”, literal word-by-word interpretation can miss the idiomatic meaning. For “The book that the students recommended is useful”, the verb is agrees with book across an intervening phrase.

Exam mein challenge ka naam + ek sentence + dono meanings/actual failure likho.