swarmauri_tool_entityrecognition 0.7.0.dev12__tar.gz → 0.7.1__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_entityrecognition-0.7.0.dev12 → swarmauri_tool_entityrecognition-0.7.1}/PKG-INFO +15 -11
- swarmauri_tool_entityrecognition-0.7.1/README.md +51 -0
- {swarmauri_tool_entityrecognition-0.7.0.dev12 → swarmauri_tool_entityrecognition-0.7.1}/pyproject.toml +2 -2
- swarmauri_tool_entityrecognition-0.7.0.dev12/README.md +0 -47
- {swarmauri_tool_entityrecognition-0.7.0.dev12 → swarmauri_tool_entityrecognition-0.7.1}/LICENSE +0 -0
- {swarmauri_tool_entityrecognition-0.7.0.dev12 → swarmauri_tool_entityrecognition-0.7.1}/swarmauri_tool_entityrecognition/EntityRecognitionTool.py +0 -0
- {swarmauri_tool_entityrecognition-0.7.0.dev12 → swarmauri_tool_entityrecognition-0.7.1}/swarmauri_tool_entityrecognition/__init__.py +0 -0
{swarmauri_tool_entityrecognition-0.7.0.dev12 → swarmauri_tool_entityrecognition-0.7.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: swarmauri_tool_entityrecognition
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Swarmauri Community Entity Recognition Tool
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Jacob Stewart
|
|
@@ -18,20 +18,25 @@ Requires-Dist: tf-keras (==2.16.0)
|
|
|
18
18
|
Requires-Dist: transformers (>=4.45.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_entityrecognition/">
|
|
26
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri_tool_entityrecognition" alt="PyPI - Downloads"/></a>
|
|
27
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/community/swarmauri_tool_entityrecognition/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_entityrecognition/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_entityrecognition/">
|
|
30
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri_tool_entityrecognition" alt="PyPI - Python Version"/></a>
|
|
31
|
+
<a href="https://pypi.org/project/swarmauri_tool_entityrecognition/">
|
|
32
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_tool_entityrecognition" alt="PyPI - License"/></a>
|
|
33
|
+
<a href="https://pypi.org/project/swarmauri_tool_entityrecognition/">
|
|
34
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_tool_entityrecognition?label=swarmauri_tool_entityrecognition&color=green" alt="PyPI - swarmauri_tool_entityrecognition"/></a>
|
|
35
|
+
</p>
|
|
31
36
|
|
|
32
37
|
---
|
|
33
38
|
|
|
34
|
-
# Entity Recognition
|
|
39
|
+
# Swarmauri Tool Entity Recognition
|
|
35
40
|
|
|
36
41
|
A Swarmauri tool that extracts named entities from text using a pre-trained NLP model.
|
|
37
42
|
|
|
@@ -58,7 +63,6 @@ text = "Apple Inc. is an American multinational technology company."
|
|
|
58
63
|
result = tool(text=text)
|
|
59
64
|
|
|
60
65
|
# The result will contain entities in JSON format
|
|
61
|
-
# Example output: {"I-ORG": ["Apple", "Inc"], "I-MISC": ["American"]}
|
|
62
66
|
print(result["entities"])
|
|
63
67
|
```
|
|
64
68
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://pypi.org/project/swarmauri_tool_entityrecognition/">
|
|
6
|
+
<img src="https://img.shields.io/pypi/dm/swarmauri_tool_entityrecognition" alt="PyPI - Downloads"/></a>
|
|
7
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/community/swarmauri_tool_entityrecognition/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_entityrecognition/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_entityrecognition/">
|
|
10
|
+
<img src="https://img.shields.io/pypi/pyversions/swarmauri_tool_entityrecognition" alt="PyPI - Python Version"/></a>
|
|
11
|
+
<a href="https://pypi.org/project/swarmauri_tool_entityrecognition/">
|
|
12
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_tool_entityrecognition" alt="PyPI - License"/></a>
|
|
13
|
+
<a href="https://pypi.org/project/swarmauri_tool_entityrecognition/">
|
|
14
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_tool_entityrecognition?label=swarmauri_tool_entityrecognition&color=green" alt="PyPI - swarmauri_tool_entityrecognition"/></a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Swarmauri Tool Entity Recognition
|
|
20
|
+
|
|
21
|
+
A Swarmauri tool that extracts named entities from text using a pre-trained NLP model.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install swarmauri_tool_entityrecognition
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
Here's a basic example of how to use the Entity Recognition Tool:
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from swarmauri.tools.EntityRecognitionTool import EntityRecognitionTool
|
|
35
|
+
|
|
36
|
+
# Initialize the tool
|
|
37
|
+
tool = EntityRecognitionTool()
|
|
38
|
+
|
|
39
|
+
# Example text for entity recognition
|
|
40
|
+
text = "Apple Inc. is an American multinational technology company."
|
|
41
|
+
|
|
42
|
+
# Get entities from the text
|
|
43
|
+
result = tool(text=text)
|
|
44
|
+
|
|
45
|
+
# The result will contain entities in JSON format
|
|
46
|
+
print(result["entities"])
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Want to help?
|
|
50
|
+
|
|
51
|
+
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_tool_entityrecognition"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.1"
|
|
4
4
|
description = "Swarmauri Community Entity Recognition 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
|
EntityRecognitionTool = "swarmauri_tool_entityrecognition.EntityRecognitionTool:EntityRecognitionTool"
|
|
51
51
|
[build-system]
|
|
52
52
|
requires = ["poetry-core>=1.0.0"]
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-

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

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Entity Recognition Tool
|
|
15
|
-
|
|
16
|
-
A Swarmauri tool that extracts named entities from text using a pre-trained NLP model.
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
pip install swarmauri_tool_entityrecognition
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Usage
|
|
25
|
-
|
|
26
|
-
Here's a basic example of how to use the Entity Recognition Tool:
|
|
27
|
-
|
|
28
|
-
```python
|
|
29
|
-
from swarmauri.tools.EntityRecognitionTool import EntityRecognitionTool
|
|
30
|
-
|
|
31
|
-
# Initialize the tool
|
|
32
|
-
tool = EntityRecognitionTool()
|
|
33
|
-
|
|
34
|
-
# Example text for entity recognition
|
|
35
|
-
text = "Apple Inc. is an American multinational technology company."
|
|
36
|
-
|
|
37
|
-
# Get entities from the text
|
|
38
|
-
result = tool(text=text)
|
|
39
|
-
|
|
40
|
-
# The result will contain entities in JSON format
|
|
41
|
-
# Example output: {"I-ORG": ["Apple", "Inc"], "I-MISC": ["American"]}
|
|
42
|
-
print(result["entities"])
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Want to help?
|
|
46
|
-
|
|
47
|
-
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.
|
{swarmauri_tool_entityrecognition-0.7.0.dev12 → swarmauri_tool_entityrecognition-0.7.1}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|