Professional Documents
Culture Documents
AI Worksheet Exp 5
AI Worksheet Exp 5
Worksheet
EXPERIMENT – 5
GROUP NO. 3
GROUP MEMBERS:
Aman Singh
Sudhanshu Singhal
Shaurya Yadav
SIDDHARTHA KUMAR
Aman Kumar Nishad
Aim:
Derive insights from unstructured text using machine learning
custom models to classify, extract, and detect sentiments
Requirements:
PC with internet connectivity
Python 3.7 OR Anaconda (Spyder)
Text Used:
Mirzapur Season 2 Review: A still from the series. That out of the
way, Mirzapur S2 isn't a washout. Directed by Gurmmeet Singh and
Mihir Desai, the show is well-crafted and the script by Puneet
Krishna and Vineet Krishna, while relying largely on trite tropes,
isn't without its share of highs.
20ECP118: Foundations of AI Applications Lab
CODE:
import nltk
from textblob import TextBlob
from textblob import Word
if sentiment == 0:
print('The text is neutral')
elif sentiment > 0:
print('The text is positive')
else:
print('The text is negative')
nouns = list()
OUTPUT: