swarmauri_tool_sentimentanalysis 0.7.0.dev12__tar.gz → 0.7.1.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {swarmauri_tool_sentimentanalysis-0.7.0.dev12 → swarmauri_tool_sentimentanalysis-0.7.1.dev1}/PKG-INFO +15 -10
- swarmauri_tool_sentimentanalysis-0.7.1.dev1/README.md +49 -0
- {swarmauri_tool_sentimentanalysis-0.7.0.dev12 → swarmauri_tool_sentimentanalysis-0.7.1.dev1}/pyproject.toml +2 -2
- swarmauri_tool_sentimentanalysis-0.7.0.dev12/README.md +0 -44
- {swarmauri_tool_sentimentanalysis-0.7.0.dev12 → swarmauri_tool_sentimentanalysis-0.7.1.dev1}/LICENSE +0 -0
- {swarmauri_tool_sentimentanalysis-0.7.0.dev12 → swarmauri_tool_sentimentanalysis-0.7.1.dev1}/swarmauri_tool_sentimentanalysis/SentimentAnalysisTool.py +0 -0
- {swarmauri_tool_sentimentanalysis-0.7.0.dev12 → swarmauri_tool_sentimentanalysis-0.7.1.dev1}/swarmauri_tool_sentimentanalysis/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: swarmauri_tool_sentimentanalysis
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1.dev1
|
|
4
4
|
Summary: Sentiment Analysis Tool
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Jacob Stewart
|
|
@@ -18,20 +18,25 @@ Requires-Dist: tf-keras
|
|
|
18
18
|
Requires-Dist: transformers (>=4.49.0)
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
|
|
21
|
-

|
|
22
21
|
|
|
23
|
-
|
|
22
|
+

|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
<p align="center">
|
|
25
|
+
<a href="https://pypi.org/project/swarmauri_tool_sentimentanalysis/">
|
|
26
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri_tool_sentimentanalysis" alt="PyPI - Downloads"/></a>
|
|
27
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/community/swarmauri_tool_sentimentanalysis/README.md">
|
|
28
|
+
<img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/community/swarmauri_tool_sentimentanalysis/README.md&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
|
|
29
|
+
<a href="https://pypi.org/project/swarmauri_tool_sentimentanalysis/">
|
|
30
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri_tool_sentimentanalysis" alt="PyPI - Python Version"/></a>
|
|
31
|
+
<a href="https://pypi.org/project/swarmauri_tool_sentimentanalysis/">
|
|
32
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_tool_sentimentanalysis" alt="PyPI - License"/></a>
|
|
33
|
+
<a href="https://pypi.org/project/swarmauri_tool_sentimentanalysis/">
|
|
34
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_tool_sentimentanalysis?label=swarmauri_tool_sentimentanalysis&color=green" alt="PyPI - swarmauri_tool_sentimentanalysis"/></a>
|
|
35
|
+
</p>
|
|
31
36
|
|
|
32
37
|
---
|
|
33
38
|
|
|
34
|
-
#
|
|
39
|
+
# Swarmauri Tool Sentimentanalysis
|
|
35
40
|
|
|
36
41
|
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.
|
|
37
42
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://pypi.org/project/swarmauri_tool_sentimentanalysis/">
|
|
6
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri_tool_sentimentanalysis" alt="PyPI - Downloads"/></a>
|
|
7
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/community/swarmauri_tool_sentimentanalysis/README.md">
|
|
8
|
+
<img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/swarmauri/swarmauri-sdk/pkgs/community/swarmauri_tool_sentimentanalysis/README.md&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false" alt="GitHub Hits"/></a>
|
|
9
|
+
<a href="https://pypi.org/project/swarmauri_tool_sentimentanalysis/">
|
|
10
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri_tool_sentimentanalysis" alt="PyPI - Python Version"/></a>
|
|
11
|
+
<a href="https://pypi.org/project/swarmauri_tool_sentimentanalysis/">
|
|
12
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_tool_sentimentanalysis" alt="PyPI - License"/></a>
|
|
13
|
+
<a href="https://pypi.org/project/swarmauri_tool_sentimentanalysis/">
|
|
14
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_tool_sentimentanalysis?label=swarmauri_tool_sentimentanalysis&color=green" alt="PyPI - swarmauri_tool_sentimentanalysis"/></a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Swarmauri Tool Sentimentanalysis
|
|
20
|
+
|
|
21
|
+
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.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install swarmauri_tool_sentimentanalysis
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
Here's a basic example of how to use the Sentiment Analysis Tool:
|
|
31
|
+
```python
|
|
32
|
+
from swarmauri.tools.SentimentAnalysisTool import SentimentAnalysisTool
|
|
33
|
+
|
|
34
|
+
# Initialize the tool
|
|
35
|
+
tool = SentimentAnalysisTool()
|
|
36
|
+
|
|
37
|
+
# Analyze sentiment
|
|
38
|
+
result = tool("I love this product!")
|
|
39
|
+
print(result) # {'sentiment': 'POSITIVE'}
|
|
40
|
+
|
|
41
|
+
# Another example
|
|
42
|
+
result = tool("This product is okay.")
|
|
43
|
+
print(result) # {'sentiment': 'NEUTRAL'}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Want to help?
|
|
47
|
+
|
|
48
|
+
If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
|
|
49
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_tool_sentimentanalysis"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.1.dev1"
|
|
4
4
|
description = "Sentiment Analysis Tool"
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
readme = "README.md"
|
|
@@ -46,7 +46,7 @@ log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
|
|
|
46
46
|
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
|
|
47
47
|
asyncio_default_fixture_loop_scope = "function"
|
|
48
48
|
|
|
49
|
-
[
|
|
49
|
+
[project.entry-points.'swarmauri.tools']
|
|
50
50
|
SentimentAnalysisTool = "swarmauri_tool_sentimentanalysis.SentimentAnalysisTool:SentimentAnalysisTool"
|
|
51
51
|
|
|
52
52
|
[build-system]
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
<div align="center">
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Sentiment Analysis Tool
|
|
15
|
-
|
|
16
|
-
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.
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pip install swarmauri_tool_sentimentanalysis
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Usage
|
|
25
|
-
Here's a basic example of how to use the Sentiment Analysis Tool:
|
|
26
|
-
```python
|
|
27
|
-
from swarmauri.tools.SentimentAnalysisTool import SentimentAnalysisTool
|
|
28
|
-
|
|
29
|
-
# Initialize the tool
|
|
30
|
-
tool = SentimentAnalysisTool()
|
|
31
|
-
|
|
32
|
-
# Analyze sentiment
|
|
33
|
-
result = tool("I love this product!")
|
|
34
|
-
print(result) # {'sentiment': 'POSITIVE'}
|
|
35
|
-
|
|
36
|
-
# Another example
|
|
37
|
-
result = tool("This product is okay.")
|
|
38
|
-
print(result) # {'sentiment': 'NEUTRAL'}
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Want to help?
|
|
42
|
-
|
|
43
|
-
If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.
|
|
44
|
-
|
{swarmauri_tool_sentimentanalysis-0.7.0.dev12 → swarmauri_tool_sentimentanalysis-0.7.1.dev1}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|