Professional Documents
Culture Documents
• Natural language processing (NLP) is a branch of artificial intelligence within computer science
that focuses on helping computers to understand the way that humans write and speak.
• NLP is a sub-field of AI that is focused on enabling machines to understand and process human
conversations.
• Computer should replicate the same thing(Machine – Human beings communicate each other)
• The field of NLP involves making computers to perform useful tasks with the natural languages
humans use. The input and output of an NLP system can be −
- Speech
- Written Text
Computers work on binary and everything which is coded into computing language (HLL) gets
translated into Machine language.
• Now NLP deals with the idea of having computers understand our language without need for
programming language.
Applications of NLP
• Speech Processing (Google Assistant)-Enable computer to understand what people are saying.
• Chatbots
Components of NLP
• It is the process of producing meaningful phrases and sentences in the form of natural language
from some internal representation.
It involves −
• Text planning − It includes retrieving the relevant content from knowledge base.
• Sentence planning − It includes choosing required words, forming meaningful phrases, setting
tone of the sentence.
1. Lexical Analysis
We have to arrange the structure of words. The collection of words and phrases in language is lexicon
of a language.
2.Syntactic Analysis(Parsing)
Need to parsing for the analysis of the word. Although, have to arrange the words in a particular
manner that shows the relationship between words.
3.Semantic Analysis
It describes a dictionary meaning which is meaningful. In the task domain, mapping syntactic structure
and objects.
4.Discourse integration
In this step, the meaning of any sentence depends upon the meaning of the previous sentence. In
addition also brings the meaning to immediately succeeding sentence.
5.Progmatic Analysis
In this step, data is interpreted on what is actually meant. Although we have to derive aspects of
language which requires real world knowledge.
Difficulties in NLU
1.Lexical Ambiguity
3.Referential Ambiguity
We have to reference something to pronounce. One input can mean different meanings.
Syntactic Analysis
• Syntax refers to arrangements of words in a sentence such that they make grammatical sense.
• It help us to understand the role played by different words in the body of text.
Semantic Analysis
• NLP is a field which aims to give machine the ability to understand natural language.
• Word order
Composition semantics
• It involves how word combines to form larger meaning ->Meaning of each matters.
These statements are written is different but their meaning are the same.
Syntactically its correct. But no proper expected output from the system.