Natural Language Processing
Natural Language Processing
(NLP)
Natural Language Processing (NLP)
Components of NLP
• Machine Translation
Spam Detection • Spelling Correction
• Speech Recognition
• Chatbots
This phase scans the source code as a stream of characters and converts it into
meaningful lexemes. It divides the whole text into paragraphs, sentences, and words.
Also called as parsing is used to check grammar, word arrangements, and shows the
relationship among the words.
Discourse Integration depends upon the sentences that proceeds it and also invokes the
meaning of the sentences that follow it.
Pragmatic is the fifth and last phase of NLP. It helps you to discover the intended
effect by applying a set of rules that characterize cooperative dialogues.
How to build NLP pipeline
Independence Day is one of the important festivals for every Indian citizen. It is celebrated on the 15th of
August each year ever since India got independence from the British rule. The day celebrates
independence in the true sense.
Example:
JavaTpoint offers Corporate Training, Summer Training, Online Training, and Winter Training.
Step3: Stemming
Stemming is used to normalize words into its base form or root form. For example, celebrates, celebrated and
celebrating, all these words are originated with a single root word "celebrate." The big problem with stemming is
that sometimes it produces the root word which may not have any meaning.
For Example, intelligence, intelligent, and intelligently, all these words are originated with a single root word
"intelligen." In English, the word "intelligen" do not have any meaning.
How to build NLP pipeline
Step 4: Lemmatization
Lemmatization is quite similar to the Stemming. It is used to group different inflected forms of the word, called
Lemma. The main difference between Stemming and lemmatization is that it produces the root word, which has
a meaning.
For example: In lemmatization, the words intelligence, intelligent, and intelligently has a root word intelligent,
which has a meaning.
How to build NLP pipeline
In English, there are a lot of words that appear very frequently like "is", "and", "the", and "a". NLP pipelines will
flag these words as stop words. Stop words might be filtered out before doing any statistical analysis.
Step 9: Chunking
Chunking is used to collect the individual piece of information and grouping them into bigger pieces of
sentences.
How to build NLP pipeline
Lexical Ambiguity
Lexical Ambiguity exists in the presence of two or more possible meanings of the sentence within a
single word. Example: Manya is looking for a match.
Syntactic Ambiguity
Syntactic Ambiguity exists in the presence of two or more possible meanings within the sentence.
Example: I saw the girl with the binocular.
Referential Ambiguity
Referential Ambiguity exists when you are referring to something using the pronoun.
Example: Kiran went to Sunita. She said, "I am hungry."