Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Â
Natural language processing
1. Natural language Processing
ï Natural Language Processing (NLP) refers to AI method of
communicating with an intelligent systems using a natural language
such as English.
ï Processing of Natural Language is required when you want an
intelligent system like robot to perform as per your instructions,
when you want to hear decision from a dialogue based clinical expert
system, etc.
ï 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
2. Components of NLP
There are two components of NLP as given :
A) Natural Language Understanding ( NLU)
ï§ With natural language understanding (NLU), computers can deduce what a
speaker actually means, and not just the words they say.
ï§ Understanding involves the following tasks
(1)Mapping the given input in natural language into useful representations.
(2)Analyzing different aspects of the language.
ï§ For example, Apple's Siri or Amazon's Alexa performs natural language
understanding work in the context of hearing and deciphering user inputs.
3. B) Natural Language Generation (NLG)
ï It is the process of producing meaningful phrases and sentences in
the form of natural language from some internal representation.
ïIt involves :
(1) Text planning â It includes retrieving the relevant content from
knowledge base.
(2) Sentence planning â It includes choosing required words, forming
meaningful phrases, setting tone of the sentence.
(3) Text Realization â It is mapping sentence plan into sentence
structure.
NLU is harder than NLG.
4. Difficulties in NLU
ïNL has an extremely rich form and structure.
ïIt is very ambiguous. There can be different levels of ambiguity â
(1)Lexical ambiguity â It is at very primitive level such as word-level.
For example, âBookâ
(2)Syntax Level ambiguity â A sentence can be parsed in different
ways.
For example, âCall me a taxi?â
(3)Referential ambiguity â Referring to something using pronouns. For
example, Rima went to Gauri. She said, âI am tired.â â Exactly who is
tired?
5. NLP Terminology
âą Phonology â concerns how words are related to the sounds that
realize them.
âą Morphology â concerns how words are constructed from more
basic meaning units called morphemes. A morpheme is the primitive
unit of meaning in a language.
âą Syntax â concerns how can be put together to form correct sentences
and determines what structural role each word plays in the sentence
and what phrases are subparts of other phrases.
âą Semantics â concerns what words mean and how these meaning
combine in sentences to form sentence meaning. The study of
context-independent meaning.
6. âą Pragmatics â concerns how sentences are used in different situations
and how use affects the interpretation of the sentence.
âą Discourse â concerns how the immediately preceding sentences
affect the interpretation of the next sentence. For example,
interpreting pronouns and interpreting the temporal aspects of the
information.
âą World Knowledge â includes general knowledge about the world.
What each language user must know about the otherâs beliefs and
goals.
7. Steps in NLP
âą Lexical Analysis â It involves identifying and analyzing the structure of
words. Lexicon of a language means the collection of words and
phrases in a language. Lexical analysis is dividing the whole chunk of
txt into paragraphs, sentences, and words.
âą 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. The sentence such as âThe school
goes to boyâ is rejected by English syntactic analyzer.
âą 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.
8. âą Discourse Integration â 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.
âą Pragmatic Analysis â During this, what was said is re-interpreted on
what it actually meant. It involves deriving those aspects of language
which require real world knowledge.