Swarmauri Tool Sentimentanalysis
A tool for analyzing the sentiment of text using Hugging Face's transformers library. This tool provides simple sentiment analysis capabilities, classifying text as POSITIVE, NEGATIVE, or NEUTRAL.
Installation
pip install swarmauri_tool_sentimentanalysis
Usage
Here's a basic example of how to use the Sentiment Analysis Tool:
from swarmauri.tools.SentimentAnalysisTool import SentimentAnalysisTool
# Initialize the tool
tool = SentimentAnalysisTool()
# Analyze sentiment
result = tool("I love this product!")
print(result) # {'sentiment': 'POSITIVE'}
# Another example
result = tool("This product is okay.")
print(result) # {'sentiment': 'NEUTRAL'}
Want to help?
If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.
Metadata
Release files for swarmauri_tool_sentimentanalysis 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_tool_sentimentanalysis-0.9.0.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_tool_sentimentanalysis-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / swarmauri_tool_sentimentanalysis-0.9.0.tar.gz
| Download URL | swarmauri_tool_sentimentanalysis-0.9.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06e6c7b82341fd4db297d36bf18e671f7ad0ec75606680ab1cb8c5093d06d1c3
|
|
BLAKE2b-256 checksum How to use checksums |
ca2fe0e99e035ed9423d87f0031cf5b6be3da24da0be53efb0b832106d8488ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / swarmauri_tool_sentimentanalysis-0.9.0-py3-none-any.whl
| Download URL | swarmauri_tool_sentimentanalysis-0.9.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed7250acceec97a537f86deee8ae5d8f2ed9a5daa122c1566e33bdb21b6cad58
|
|
BLAKE2b-256 checksum How to use checksums |
bd7c92d6741cef4a3045df97ae472f8e697a70d9d896bcd12def42ec30c69c5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|