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.6.1.dev14.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.6.1.dev14.tar.gz
Algorithm Hash digest
SHA256 a2f4e1687db3bcdedcc22398a8c426cfa8afced6daa99e63149fcd6b2917b276
MD5 4c23b680a1a8f79b337e2ea2dbfccfb7
BLAKE2b-256 9824c23b70f1f318cd24a50cfc329e353d0de671dd6c694d7a67fc3138b651dc

See more details on using hashes here.

File details

Details for the file swarmauri_parser_keywordextractor-0.6.1.dev14-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.6.1.dev14-py3-none-any.whl
Algorithm Hash digest
SHA256 a2e3e7ebea49179f297dccedb189c446aa6b2ee691ae5bd9e97b79c6dd7d6343
MD5 90f94f42717508e8a41dd84f18e5ba41
BLAKE2b-256 53a29e9331056e1af2d25f6d9497e19548d90c6beb9bdbc34c33dc0ab138e05e

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