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

swarmauri_parser_entityrecognition-0.6.6.tar.gz (7.8 kB view details)

Uploaded Source

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

File metadata

File hashes

Hashes for swarmauri_parser_entityrecognition-0.6.6.tar.gz
Algorithm Hash digest
SHA256 832c857877d3a76c61b4e7cc88cefe665e485f43bea36e63764025cdf0dd22d2
MD5 b018a9bc20cb1caab969de1e685e605a
BLAKE2b-256 d3dc652d500a80f219e050afd3ece8fbd4b656a961ccd7eb6246ecc127f149b4

See more details on using hashes here.

File details

Details for the file swarmauri_parser_entityrecognition-0.6.6-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_entityrecognition-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2889ae247ea6240fda6b8410df49f4542c0b611fa2ad6a241345e040af96a577
MD5 a0982eee2b9893cfdf29cc1d7913e39a
BLAKE2b-256 6aa256f41b480a422dbb1373458368141318277fa3eb89afa17c9d5c44ab9228

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