NLp_lab1
NLp_lab1
.
Application of NLP
1- Text Categorization
Is the document about?
Plants?
Sports?
Document Political?
Health and fitness?
..
..
..
Stock market?
Ex. Uclassify
Application of NLP (cont)
2- Sentiment classification
Is the over all sentiments
in the document
positive?
Document OR
negative?
4- Question-Answering
➢ In contrast to Information Retrieval, which provides a list
of potentially relevant documents in response to a user’s
query.
➢ provides the user with either just the text of the answer
itself or answer-providing passages.
5- Summarization
➢ reduces a larger text into a shorter, yet richly constituted
abbreviated narrative representation of the original
document.
➢ Very context-dependent!
➢ Ex. Tools for noobs.
Application of NLP (cont)
6- Machine translation
➢ perhaps the oldest of all NLP applications, various levels
of NLP have been utilized in MT systems, ranging from the
‘word-based’ approach to applications that include higher
levels of analysis.
➢ EX, Google, SysTtran
Level of difficulties
Mostly Solved Good progress Still Hard
Easy intermediate Hard
Easy intermediate Hard
Paraphrasing
4/21/20 22 22
The Problem of NLP
➢ When people see text, they understand its meaning (by and large)
➢ When computers see text, they get only character strings (and perhaps HTML
tags)
➢ We'd like computer agents to see meanings and be able to intelligently process
text
➢ These desires have led to many proposals for structured, semantically marked
up formats
➢ But often human beings still resolutely make use of text in human languages
➢ This problem isn’t likely to just go away.
➢ Ambiguities (Syntactic , Semantic)
General NLP—Too Difficult!
• Word-level ambiguity
• “design” can be a noun or a verb (Ambiguous POS)
• “root” has multiple meanings (Ambiguous sense)
• Syntactic ambiguity
• “natural language processing” (Modification)
• “A man saw a boy with a telescope.” (PP Attachment)
• Anaphora resolution
• “John persuaded Bill to buy a TV for himself.”
(himself = John or Bill?)
• Presupposition (Assumption)
• “He has quit smoking.” implies that he smoked before.
Morphological Analysis
• Purpose determine meanings of individual word. is the study of how root words
and affixes – the morphemes – are composed to form words- Morpheme − It is
primitive unit of meaning in a language.
• Analyzing words into their linguistic components
– Replace original word by root+affixes
• unbreakable → un + break + able ( ‘under’)
• Lookup the root in a database of meanings : a lexicon
• Problem word level ambiguity words may have several meanings, the correct
one cannot be chosen
– Example : the word “bank”, the word “mean”
– Further problem domain specialized meanings
Stages of language processing (Cont.)
Syntactic Analysis
• Parsing : It involves analysis of words in the sentence for grammar and arranging
words in a manner that shows the relationship among the words.
Semantic Analysis
• It draws the exact meaning or the dictionary meaning from the text. The text is
checked for meaningfulness. It is done by mapping syntactic structures and
objects in the task domain.
Pragmatic Analysis
Discourse
• The meaning of any sentence depends upon the meaning of the sentence
just before it. In addition, it also brings about the meaning of
immediately succeeding sentence.