This project demonstrates Aspect-Based Sentiment Analysis (ABSA) using PyABSA, a library for aspect-based sentiment analysis. The application allows users to input a sentence, and it extracts aspects, predicts sentiment, and displays the results in a tabular form.
- Python 3.x
- Install required dependencies:
streamlit
,pyabsa
,pandas
pip install -r requirements
- Clone the repository
git clone https://github.com/shaadclt/Aspect-Based-Sentiment-Analysis.git
cd Aspect-Based-Sentiment-Analysis
- Run the streamlit app
streamlit run ABSA.py
- Enter a sentence in the provided text input.
- Click the "Analyze" button to perform Aspect-based Sentiment Analysis.
- View the results in the displayed table.
The analysis result is displayed in a table with the following columns.
- Aspect: Aspect number
- Term: Extracted aspect term
- Sentiment: Predicted sentiment (Positive/Negative)
- Confidence (%): Confidence level of the sentiment prediction in percentage.
If you'd like to contribute to this project, please follow the standard GitHub Fork & Pull Request workflow.
This project is licensed under the MIT License.