A Python code to classify the sentiment of a text to positive or negative
This repository contains two sub directories:
- Source
- Datasets
- 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 :
- Change to the directory Source
- Execute command : " python sentiment1.py " on the terminal
- 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.