Welcome to this repository! Here, we will walk through an example of applying sentiment analysis in a real project. In this project, we perform sentiment analysis on IMDb movie reviews using the TF-IDF technology. We achieved high accuracy on the training data, but also encountered the challenge of overfitting.
If you're interested in running this project on your local machine, follow these steps:
- Clone this repository using the following command:
git clone https://github.com/Aliraqimustafa/SentimentAnalysis.git
- Install the TensorFlow library:
pip install tensorflow
-
Download the IMDb dataset from here.
-
Place the downloaded dataset in the appropriate directory and update the file path in the
main.ipynb
file. -
Open the
main.ipynb
notebook and run all the cells.
Alternatively, if you prefer to work on Kaggle, you can follow these steps:
-
Access the IMDb dataset on Kaggle from here.
-
Create a new notebook on Kaggle.
-
Copy all the cells from the
main.ipynb
notebook in this repository and paste them into your Kaggle notebook. -
Run all the cells to execute the project.
Feel free to explore and experiment with the project to learn more about sentiment analysis and the TF-IDF technique. Happy analyzing!
Note: This project is intended for educational purposes and to provide practical insights into sentiment analysis. Make sure to adhere to data usage and licensing guidelines when working with external datasets like IMDb.