Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.03 KB

File metadata and controls

30 lines (18 loc) · 1.03 KB

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.