Skip to content

OmPreetham/nlp-sentiment-analysis-document-scoring-method

Repository files navigation

Project Name: NLP Sentiment Analysis

This README provides guidance on how to set up and run the Python script for the NLP sentiment analysis project. The script uses natural language processing to identify the sentiment of text documents.

Prerequisites

Make sure you are in the project directory.

Before you run this script, you need to ensure you have the following installed:

  • Python 3.8 or above
  • pip (Python package installer)

Required Libraries

Make sure to install the following Python libraries. You can install these packages via pip:

pip install numpy pandas scikit-learn nltk

No additional setup required beyond the installation of the dependencies listed above.

Running the Script

Go to project folder.

To run the script, follow these steps:

python project.py

if python is not working try python3 project.py

See the output and accuracy in Terminal

Review

Describe any inputs that the user needs to provide or files that need to be in place:

Ensure trainData.csv and testData.csv are in the same directory as the script, or update the script with their path if they are located elsewhere.