A Python SDK for AI Text sentiment analysis
Project description
AI Text Sentiment Analysis SDK
The Text Sentiment Analysis SDK is a Python library that provides easy-to-use tools for analyzing the sentiment of text data. With this SDK, developers can perform sentiment analysis on text inputs, highlighting sentiments within sentences, calculating overall sentiment scores, and providing detailed sentiment counts.
Features
- Sentiment Analysis: Analyze the sentiment of text data.
- Highlight Sentiments: Highlight sentiments within sentences.
- Overall Sentiment Score: Calculate overall sentiment scores.
- Detailed Sentiment Counts: Provide detailed counts of different sentiment types.
Installation
You can install the SDK via pip:
pip install Text_sentiment_ai_sdk
Usage
from Text_sentiment_ai_sdk import SentimentAI
# Initialize the sentiment analysis client
client = SentimentAI()
# Example text to analyze
text = "This SDK is amazing! It makes sentiment analysis so easy."
# Perform sentiment analysis
result = client.analyze_text(text)
# Process the sentiment analysis result
if result:
print("Sentiment:", result['sentiment'])
print("Overall Sentiment Score:", result['overall_sentiment_score'])
print("Sentiment Label:", result['sentiment_label'])
print("Highlighted Text:")
for sentence, sentiment in result['highlighted_text'].items():
print(f"{sentence}: {sentiment}")
Contributing
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Text_sentiment_ai_sdk-1.0.1.tar.gz.
File metadata
- Download URL: Text_sentiment_ai_sdk-1.0.1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc3970171493c118c35b897eb2efd5871f4da013f65c7020403ab43c19bdcd98
|
|
| MD5 |
ae8a8716e99143d1d450b65be03a4887
|
|
| BLAKE2b-256 |
b865dfc7d21c24f1afb5b617aaa71deae01a3ffe72f76893a35a807e26b2b86f
|
File details
Details for the file Text_sentiment_ai_sdk-1.0.1-py3-none-any.whl.
File metadata
- Download URL: Text_sentiment_ai_sdk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2a6cf87756783ec283f9f7f6cb4308b41510357fbc029a48eeaeecb01149f3a
|
|
| MD5 |
537c94a465a9d8afa15f41e5525baf22
|
|
| BLAKE2b-256 |
b13b507c0a431e934c62d02d3de7bb6d08e3f1c97668bce62b1fc688e922f0d6
|