
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
tool = SentimentAnalysisTool()
result = tool("I love this product!")
print(result)
result = tool("This product is okay.")
print(result)
Want to help?
If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.