Skip to main content

Entity Recognition Parser for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_parser_entityrecognition


Swarmauri Parser Entityrecognition

EntityRecognitionParser leverages NER capabilities to parse text and extract entities with their respective tags such as PERSON, LOCATION, ORGANIZATION, etc.

Installation

pip install swarmauri_parser_entityrecognition

Usage

Basic usage examples with code snippets

from swarmauri.parsers.EntityRecognitionParser import EntityRecognitionParser

# Initialize the parser
parser = EntityRecognitionParser()

# Parse text to extract entities
text = "Barack Obama was born in Hawaii."
entities = parser.parse(text)

# Print extracted entities
for entity in entities:
    print(f"Entity: {entity.content}, Type: {entity.metadata['entity_type']}")

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


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_parser_entityrecognition-0.6.7.dev1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_entityrecognition-0.6.7.dev1.tar.gz
Algorithm Hash digest
SHA256 ae1dcc223158090d3428149b0e6fec3bff8c3b1610decfd6b6ec4880dd525878
MD5 aef13c51fec0c5274c90e3e62af3faea
BLAKE2b-256 6390db3359b28d0af880399a757b68c47ccfa75cb8b0ece2f304e166767b82a8

See more details on using hashes here.

File details

Details for the file swarmauri_parser_entityrecognition-0.6.7.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_entityrecognition-0.6.7.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 c89f9e2d26702d31b47e0fd2af79a274734ec255add8cd1a7d2c535356f84b73
MD5 76a68150539b750d0354c59cbc833123
BLAKE2b-256 fd7186a88a355db42920cba52fd78e2a6e5ccf256ff946ffba6dea36a45eef4b

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