This project is a cutting-edge product review analysis tool leveraging Natural Language Processing (NLP) to assess the sentiment of product reviews. The backend is built with Django, while the frontend is crafted using vanilla HTML, CSS, and JavaScript. The NLP model, developed with the NLTK library, predicts the sentiment of product reviews.
- Product Link Entry: Users can input a product link, and the review text is automatically extracted from product pages on platforms such as Amazon and Flipkart.
- Sentiment Analysis: The extracted review text undergoes analysis to determine its sentiment.
- Sentiment Display: The sentiment analysis results are presented to the user, accompanied by a summarized review and a visual representation of the sentiment.
- Personalized Reviews: Users can receive personalized reviews based on their past preferences and review history.
The AI product reviewer harnesses NLP techniques to:
- Extract and process review text from various product pages.
- Analyze and predict the sentiment of the reviews.
- Provide users with comprehensive summaries and visual sentiment representations.
- Offer personalized review recommendations based on user history.
The Chrome extension serves as the entry point, allowing users to effortlessly extract review text from product pages on major e-commerce platforms.
- User Authentication: Secure authentication for managing user accounts.
- User History: Maintains a detailed history of analyzed reviews for each user.
- Personalized Reviews: Delivers personalized review summaries and suggestions based on user preferences and past interactions.
The REST API connects the Chrome extension to the backend, handling:
- Requests for review text extraction.
- Communication with the NLP model for sentiment analysis.
- Storage and retrieval of user history, authentication data, and personalized review data.
The NLP model, developed using the NLTK library, processes review texts to:
- Clean and tokenize the text
- Analyze sentiment using pre-trained models and custom algorithms
- Generate sentiment scores and summaries for the reviews.
A robust database system is used to:
- Store user authentication details.
- Maintain a history of analyzed reviews for each user.
- Save sentiment analysis results, summaries, and personalized review data.
- Python 3.x
- Django
- NLTK
- HTML, CSS, JavaScript
- Chrome browser (for extension)
- Clone the Repository:
git clone https://github.com/sahilshukla3003/AI-Based-Product-Review-System-PRS-I-.git
- Backend Setup:
- Navigate to the backend directory.
- Install the required Python packages:
pip install -r requirements.txt
- Run database migrations:
python manage.py migrate
- Start the Django server:
python manage.py runserver
- Frontend Setup:
- Open the frontend directory.
- Serve the HTML file or set up a local server to view the frontend.
- Chrome Extension:
- Load the Chrome extension by navigating to
chrome://extensions/
. - Enable Developer mode.
- Click "Load unpacked" and select the extension directory.
- Load the Chrome extension by navigating to
-
Open the Chrome Extension:
- Enter the product page URL.
- Extract review text.
-
Analyze Review:
- The review text is sent to the backend for sentiment analysis.
-
View Results:
- The sentiment, summary, and graphical representation are displayed on the main website.
-
Personalized Reviews:
- Users can view personalized review recommendations based on their previous interactions and preferences.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any queries or support, contact us at [[email protected]].