Skip to main content

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

MIT

Metadata

Release files for Text-sentiment-ai-sdk 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Text-sentiment-ai-sdk 1.0.1
File Size Uploaded
Text_sentiment_ai_sdk-1.0.1.tar.gz 1.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Text-sentiment-ai-sdk 1.0.1
File Interpreter ABI Platform
Text_sentiment_ai_sdk-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.7 kB

Release files / Text_sentiment_ai_sdk-1.0.1.tar.gz

Download URL Text_sentiment_ai_sdk-1.0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cc3970171493c118c35b897eb2efd5871f4da013f65c7020403ab43c19bdcd98
BLAKE2b-256 checksum
How to use checksums
b865dfc7d21c24f1afb5b617aaa71deae01a3ffe72f76893a35a807e26b2b86f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / Text_sentiment_ai_sdk-1.0.1-py3-none-any.whl

Download URL Text_sentiment_ai_sdk-1.0.1-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2a6cf87756783ec283f9f7f6cb4308b41510357fbc029a48eeaeecb01149f3a
BLAKE2b-256 checksum
How to use checksums
b13b507c0a431e934c62d02d3de7bb6d08e3f1c97668bce62b1fc688e922f0d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page