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

swarmauri_parser_keywordextractor-0.7.0.tar.gz (6.7 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_keywordextractor-0.7.0.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.0.tar.gz
Algorithm Hash digest
SHA256 54e64c2a62d5b00e60da6e6ae2723c2bca623a6a2d014f67b0bf8749e2e207a8
MD5 3b01ee7c42e0554a08d0e482b96974d0
BLAKE2b-256 4c3608aa19d3d39bc1b7b5616c667b131e724bb0fcd69af6f6e3d00b0251d4bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 171f2c85afaba8ab6d36a15033f92bd29115f93082412c69f8be864f2f9edc37
MD5 41b85bdc9f7ab7ec58b178ba84523523
BLAKE2b-256 7d5be40eef47f5b7060638d8901a1c09d65fba73a587b855a705bd06dae693fa

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