Skip to main content

Swarmauri Community Entity Recognition Tool

Project description

Swarmauri Logo

PyPI - Downloads PyPI - Python Version PyPI - License PyPI - Version


Entity Recognition Tool

A Swarmauri tool that extracts named entities from text using a pre-trained NLP model.

Installation

pip install swarmauri_tool_entityrecognition

Usage

Here's a basic example of how to use the Entity Recognition Tool:

from swarmauri.tools.EntityRecognitionTool import EntityRecognitionTool

# Initialize the tool
tool = EntityRecognitionTool()

# Example text for entity recognition
text = "Apple Inc. is an American multinational technology company."

# Get entities from the text
result = tool(text=text)

# The result will contain entities in JSON format
# Example output: {"I-ORG": ["Apple", "Inc"], "I-MISC": ["American"]}
print(result["entities"])

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_tool_entityrecognition-0.7.0.dev9.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tool_entityrecognition-0.7.0.dev9.tar.gz
Algorithm Hash digest
SHA256 7930e0843bd03bc9b0878ef232480a26a9b4cec1269d3f22c72ccb00bbdbb340
MD5 4f03d9be16e81f0a8765e97f022bb82a
BLAKE2b-256 f5f134393264521ac54584a66f6c63869f005e8f1f02f8177e9554522b96ef72

See more details on using hashes here.

File details

Details for the file swarmauri_tool_entityrecognition-0.7.0.dev9-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_tool_entityrecognition-0.7.0.dev9-py3-none-any.whl
Algorithm Hash digest
SHA256 d309eb17ced8647f41b57101853c6c3c23e27ed223d5f3768dfd5fe8933bd437
MD5 7e0ad456392dc0d66baa507d2667e558
BLAKE2b-256 3817e04e7604df79a579dcaa689304118ef7bea46440a81c37a5a944b240545d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page