Skip to content

anoopbhatn/Sentiment-Analysis-using-Naive-Bayes-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment-Analysis-using-Naive-Bayes-Classifier

A Python code to classify the sentiment of a text to positive or negative

This repository contains two sub directories:

  1. Source
  2. Datasets
  3. Test_Cases

Source contains the source code along with the dataset that the code uses.

Datasets contains few datasets that were used while writing the code.

Test_Cases contains few test cases for which the input was tested.


The way to use this code :

  1. Change to the directory Source
  2. Execute command : " python sentiment1.py " on the terminal
  3. Enter the sentence whose sentiment is to be determined.

To change the dataset, change the filename from "dataset.csv" to the required file in sentiment_data.py.


About

A Python code to classify the sentiment of a text to positive or negative

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages