Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marwan-ahmed-23/text-sentiment-analysis-api
A lightweight Python project for analyzing the sentiment of textual data using the TextBlob library. This project provides a simple and effective way to measure the polarity and subjectivity of any given text.
https://github.com/marwan-ahmed-23/text-sentiment-analysis-api
data-analysis machine-learning python python-project sentiment-analysis text-analysis text-mining
Last synced: 10 days ago
JSON representation
A lightweight Python project for analyzing the sentiment of textual data using the TextBlob library. This project provides a simple and effective way to measure the polarity and subjectivity of any given text.
- Host: GitHub
- URL: https://github.com/marwan-ahmed-23/text-sentiment-analysis-api
- Owner: marwan-ahmed-23
- License: mit
- Created: 2024-12-09T10:25:12.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-26T07:46:05.000Z (21 days ago)
- Last Synced: 2024-12-26T08:27:23.946Z (21 days ago)
- Topics: data-analysis, machine-learning, python, python-project, sentiment-analysis, text-analysis, text-mining
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Text Sentiment Analysis API
The Text Sentiment Analysis API is a Python-based project designed to provide an easy and efficient way to analyze the sentiment of textual data. Powered by the TextBlob library, this project serves as a foundation for developers, researchers, and enthusiasts looking to incorporate sentiment analysis into their applications. It allows you to evaluate the emotional tone and objectivity of any text through its polarity and subjectivity scores.
## What is Sentiment Analysis?
Sentiment analysis is a natural language processing (NLP) technique used to determine the emotional tone conveyed by a piece of text. By analyzing polarity and subjectivity, you can understand:
- Polarity: Whether the sentiment is positive, neutral, or negative (ranges from -1 to 1).
- Subjectivity: Whether the text expresses objective facts (0) or subjective opinions (1).## Why Choose This API?
This project offers:
- **Simplicity:** Minimal dependencies and straightforward implementation.
- **Modularity:** A clean and extensible architecture that can be easily adapted to support additional NLP features or customizations.
- **Efficiency:** Lightweight and fast processing, making it suitable for small to medium-sized applications.
- **Versatility:** Can be used in a wide variety of applications, such as social media analysis, product reviews, and customer feedback systems.## 🚀 Key Features
- Analyze the sentiment (polarity and subjectivity) of any given text.
- Based on the popular TextBlob library, ensuring reliability and accuracy.
- Highly modular, making it easy to extend and integrate into larger projects.
- Examples included for quick and seamless integration into your workflows.This API is perfect for developers and data enthusiasts looking to quickly implement sentiment analysis without delving into complex NLP frameworks. It provides a robust foundation for building more advanced text analysis solutions.
## 📖 Installation
1. Clone this repository:```bash
git clone https://github.com/marwan-ahmed-23/text-sentiment-analysis-api.git
cd text-sentiment-analysis-api
```2. Install the dependencies:
```bash
pip install -r requirements.txt
```## Usage
Here's an example of how to use the Sentiment Analysis API:
```bash
from src.sentiment_analysis import SentimentAnalyzertext = "I love programming in Python!"
analyzer = SentimentAnalyzer()
result = analyzer.analyze_sentiment(text)print(f"Polarity: {result['polarity']}")
print(f"Subjectivity: {result['subjectivity']}")
```## 📂 Directory Structure
```plaintext
text-sentiment-analysis-api/
├── src/
│ └── sentiment_analysis.py
├── examples/
│ └── example.py
├── LICENSE
├── .gitignore
└── README.md
```## 🤝 Contributing
Contributions are welcome! Feel free to fork the repository and submit a pull request.## 🌟 Show Your Support
If you found this project helpful, please consider giving it a ⭐ on GitHub. Your support means the world to us!