Stages of NLP
Stages of NLP
1) Lexical Analysis:
Lexical Analysis is the first stage in NLP. It is also known as morphological analysis.
Lexical analysis is dividing the whole portion of text into paragraphs, sentences, and
words.
2) Syntactic Analysis:
It involves analysis of words in the sentence for grammar and ordering words in a way
that shows the relationship among the words.
Example:
The sentence such as “The school goes to girl” is rejected by English syntactic
analyser.
3) Semantic Analysis:
Semantic analysis draws the exact meaning or the dictionary meaning from the text.
Example:
The semantic analyser neglects sentence such as "hot ice-cream".
4) Discourse Integration:
The meaning of any sentence depends upon the meaning of the sentence just before it.
Example:
“Meena is a girl, she goes to school” here "she" is a dependency pointing to
Meena.
5) Pragmatic Analysis:
It contains deriving those aspects of language which necessitate real world knowledge.
Example:
“John saw Mary in a garden with a cat”
here we can't say that John is with cat or Mary is with cat