Skip to main content

Keyword Extractor Parser for Swarmauri.

Project description

Swarmauri Logo

PyPI - Downloads PyPI - Python Version PyPI - License PyPI - Version


Keyword Extractor Parser

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.0.dev10.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.0.dev10.tar.gz
Algorithm Hash digest
SHA256 b367ae4e5722f5c9b22218226a2cd087aca069c81ff5c817eb3a7311c213f6eb
MD5 82381b298663c569f6d6b56b4c8ed6ca
BLAKE2b-256 938549e64a86a0abffd9a47fae42771a3e45275c462f95e0bf0596a89edda88e

See more details on using hashes here.

File details

Details for the file swarmauri_parser_keywordextractor-0.7.0.dev10-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.0.dev10-py3-none-any.whl
Algorithm Hash digest
SHA256 223f7833539e7ac9dd62fa699d2a981ba9be4aa4ba505b5bfb4f2c66f766feb2
MD5 b273976f613a03c98d65d5f6a686f7a5
BLAKE2b-256 ccd5f1a3566916e87000b4b52c904d50c10d99ffed9dd50f72f9bedee99baada

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