Professional Documents
Culture Documents
DEPARTMENT OF COMPUTING
(ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING)
IV YEAR M.Sc. (AIML) – VIII Semester
CONTINUOUS ASSESSMENT TEST (CAT) – 1
19MAMEL03 – NATURAL LANGUAGE PROCESSING LAB
Date: 08.03.2023
COURSE OUTCOMES
CO1: Practice text and word representations in NLP
CO2: Use text segmentation, text summarization and categorization to process text data
CO3: Implement and evaluate different NLP applications using machine learning and deep
learning methods
SET A
1 (a) Using RE Extract the usernames from the email addresses CO1, AP
present in the document below CO2
4
Document = "The new registrations are aiml@gmail.com ,
languageprocessing@gmail.com. If you find any
disruptions, kindly contact nlp@gmail.com or
help@gmail.com "
(c) Detect all the Laptop names present in the given document
Document = “For my offical use, I prefer Dell. For gaming 4
purposes, I love asus, for entertainment purpose I go for
Lenovo “
2. For the given dataset Build a text classifier model using CO3 AP
naive bayes that can classify Hotel reviews
2
a) Load the dataset 4
b) Use text normalization approaches in dataset 4
c) Extract the reviews 4
d) Fit the classifier and display confusion matrix 4
e) Train the model and predict the result
(Dataset link: Given)
Date: 08.03.2023
COURSE OUTCOMES
CO1: Practice text and word representations in NLP
CO2: Use text segmentation, text summarization and categorization to process text data
CO3: Implement and evaluate different NLP applications using machine learning and deep learning
methods
SET B