Exp 5
Exp 5
Aim: Implementation of: (i) NER (Named Entity Recognition ) using NLTK.
Imagine you have a box of mixed candies, and you want to sort them into different groups:
chocolates, gummies, and lollipops. NER does something similar with words in a sentence. It
"looks" at the sentence and sorts certain words into categories like:
For example, in the sentence "Alice visited the Eiffel Tower in Paris on July 4th," an NER
system might identify:
● Alice as a Person
● Eiffel Tower as a Location
● Paris as a Location
● July 4th as a Date
NER helps computers understand the context of the text better by identifying and categorizing
important pieces of information.
Steps in NER
1. Preprocessing: Clean and prepare the text data, including tokenization and removing
irrelevant characters.
2. Feature Extraction: Extract features from the tokens to provide input to the model.
3. Model Application: Use the trained model to identify and classify entities in the text.
4. Post-processing: Refining and formatting the output for the desired application.