Natural Language Processing | Artificial Intelligence Tutorial | Minigranth
Natural
Language Processing(NLP) : Introduction
Natural Language
Processing is the branch of computer science and artificial
intelligence.
It deals with the
human language and computers all together in order to process the human language
and draw out some meaning from it, so that the result can be further
used.
The Natural
Language Processing can have speech and written test as Input as well as Output
in the following combinations;
Input: Speech , Output: Text.
Input: Text, Output:
Speech.
Natural Language
Processing is mainly comprises up of two
components:
Natural
Language Understanding(NLU).
Natural
Language
Generation(NLG).
Natural Language
Understanding
NLU is much
harder to implement as compared to NLG.
It is because of
the fact that, NLU is designed in such a manner that it is able to handle
unstructured and random inputs. It then, convert those inputs into structured
form so that machines can understand it and can handle it to generate some
predictable and meaningful outputs.
NLU process is carried
out before NLG
process.
Natural Language
Generation
With the help of
NLG, Unknown internal representations can be converted into meaningful phrases
and then into sentences.
Natural Language
Generation can also be called as a translator
which can translate data from human language.
Natural
Language Processing Works : Working
Every Natural Language
Processing system goes through the five
step process as described below.
Natural Language Processing :
Flow
Lexical
Analysis: This phase analysis the
structure of the words. It breaks the whole lot of paragraphs into simple
phrases and phrases into even more simpler words.
Syntactic
Analysis: This phase rephrases the series of words
generated in the
lexical analysis phase and combines them in such a way to generate meaningful
sentences and paragraphs.
Semantic
Analysis: This phase extracts the meaning and checks the
meaningfulness
of the sentences. For Example: “Wet water”.
Discourse
Integration: This phase draws out the meaning of
sentences or phrases
currently present on the basis of previous and next sentences or
phrase.
Pragmatic
Analysis: This phase is responsible for
extracting the actual meaning of the phrases by comparing it with real world
entities.