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.dev5.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tool_entityrecognition-0.7.0.dev5.tar.gz
Algorithm Hash digest
SHA256 8f5c79f63d34818ed4f340f3a9857f2c2fb83efaa70da10ce99dc20a16bcb260
MD5 4b0e8372a7f17f56a2371a80c7d8828b
BLAKE2b-256 8e921b24ab57fe360f1b4460197f9fb48f4ac8117d78d921bc64da95aa95a3cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_tool_entityrecognition-0.7.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 4527a33aae89dbcf476e28104a0f52a12308a35fc8f24efe7301441da99577f7
MD5 01f2f3668f6150183819228bfe0cd8ad
BLAKE2b-256 a83f478c6e8e88e424f68a352312b06584d3e113da35d0d34140110b3e4dfe94

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