Professional Documents
Culture Documents
Sentiment Analysis Using Naïve Bayes Classifier
Sentiment Analysis Using Naïve Bayes Classifier
RESEARCH performance
APPLICATIONS OF SENTIMENT ANALYSIS
• Brand Monitoring
• Customer Support
• Customer Feedback
• Product Analytics
• Market Research and Analysis
• Workforce Analytics & Voice of the Employee
• Spam filtering
WHY NAÏVE BAYES CLASSIFIER?
Naïve Bayes is a probabilistic algorithm that takes advantage of probability theory and
Bayes’ theorem to predict sentiment of a text.
Helped a 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 +
lot.
Thanks
DEVELOPMENT
• Pandas
• NumPy
• Scikit-learn
• NLTK
• Regex
Startup page
• Options to train dataset
for sentiment prediction
DEVELOPED SYSTEM CONTINUED..
Training page
• The training process is
getting carried out in
the backend.
DEVELOPED SYSTEM CONTINUED..
Floating navigation
button for visualization
• Option to open
visualization page.
DEVELOPED SYSTEM CONTINUED..
Visualization page
• Bar diagram showing
total reviews made on
12 test courses.
DEVELOPED SYSTEM CONTINUED..
Visualization page
• Total positive,
negative and neutral
reviews. (Extracted
from data set)
PSEUDO CODE
Import necessary libraries (pandas, sklearn, nltk tools)
Read dataset and separate sentiment text and its sentiment label.
x = datafrane.sentimentText
y = sentimentLabel
X_train, X_test,y_train,y_test=train_test_split(X,Y,test_size=0.2,random_state=1)
Remove stopwords.
Tokenization.
model=naive_bayes.MultinomialNB()
model.fit(X_train,y_train)
my_vectorizer=vectorizer.transform(my_test_data)
model.predict(my_vectorizer