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.8.0.dev4.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_entityrecognition-0.8.0.dev4.tar.gz
Algorithm Hash digest
SHA256 b3442c33970029b6c18dbcf7e9776286955642a224f6c353fbedee0128e505de
MD5 fa79c5b668dc96124c435be8cfa8f115
BLAKE2b-256 b1f2de51c63c004cd3b6758d47a7c39bc9229519b7f81812a4de6798194333eb

See more details on using hashes here.

File details

Details for the file swarmauri_parser_entityrecognition-0.8.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_entityrecognition-0.8.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 aee63176bebbc889676803eab1980bf4bce5eecde863a7a35af4687d63dadb7b
MD5 5bb7b8ec1bfcb70615767f84ca1ac023
BLAKE2b-256 0a239eaeb2115c44d7d634222f24e839038111d761389f9a43a027f82c8d757d

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