Skip to main content

Keyword Extractor Parser for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_parser_keywordextractor


Swarmauri Parser Keywordextractor

A parser component that extracts keywords from text using the YAKE keyword extraction library.

Installation

pip install swarmauri_parser_keywordextractor

Usage

Here's a basic example of how to use the KeywordExtractorParser:

from swarmauri_parser_keywordextractor.KeywordExtractorParser import KeywordExtractorParser

# Initialize the parser
parser = KeywordExtractorParser()

# Parse text and extract keywords
text = "Artificial intelligence and machine learning are transforming technology"
documents = parser.parse(text)

# Access extracted keywords and their scores
for doc in documents:
    print(f"Keyword: {doc.content}, Score: {doc.metadata['score']}")

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.9.0.dev4.tar.gz
Algorithm Hash digest
SHA256 6e07a87b7a029ed7f3abfa4a2bf6194d1ad5d7f47fd35e1bfcc25e2e40ca2b69
MD5 b9b086d9b45e3de955ed71a94c9cf897
BLAKE2b-256 4ad8d65d13f7db0d6eeca68b92dcd0598c0f56dafa4ec95a61e0a5165e2db21d

See more details on using hashes here.

File details

Details for the file swarmauri_parser_keywordextractor-0.9.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.9.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 12016ed19248099e6a1041dc0f99d619a094f2d892f5c94bde48b8e86608f1e8
MD5 a5ba3cf79510317a0e811dc020e23810
BLAKE2b-256 937357c1095ee5fb420f961dfbbd3da543fc6a268f52155c78a0e06dae8fba3c

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