Skip to main content

Keyword Extractor Parser for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads GitHub 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.7.2.dev1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.2.dev1.tar.gz
Algorithm Hash digest
SHA256 0ad3fd075ff863b79fe35ecc9b051a6ec746adb38d0a54d2ccb128c5d1bb0705
MD5 e215fe81fd777855eeb4f3ec5a201f0a
BLAKE2b-256 3d704bc13ab1b18538f6a1079ec34a23db6b0cac27e94727bc6b09bc6486d484

See more details on using hashes here.

File details

Details for the file swarmauri_parser_keywordextractor-0.7.2.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 d72af8956ab4e62c65556db1bd508d816a1ba4f0fb5a5ef021da8fdbe77703a8
MD5 a4512012d57243f12f9e8c45123a4f7b
BLAKE2b-256 60c948066bdd46f391afddf2515bfea6666a8bb0547a642b7abc4cca925e0f90

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