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.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.2.dev3.tar.gz
Algorithm Hash digest
SHA256 0a45296fe8291903f55d035dd0e81cf09e25ca2519e15e10422836fc5165f7cb
MD5 5fb20c4f6d492fee99688e3e957771d4
BLAKE2b-256 c409dfae443f9d0af99a6e794139a8df1d094fa69c123fef093f0566541db16d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.2.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 9fdb6a61c7e87881469213de966e9b643f6e3b841f3607a69952cf41f75f6ab0
MD5 1d97a3c91220c4a3a996fc0a5d77efee
BLAKE2b-256 2ebe200156e061143525a4dc354a3bfb483346c95db0c1b58b5c8f6d0284c08d

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