Skip to main content

Keyword Extractor Parser for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads 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.9.0.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.9.0.dev2.tar.gz
Algorithm Hash digest
SHA256 29125002671295b37e28c6a4e7b7159490492d370cde55a51cc6ef6ce32635e0
MD5 7776d29e93490d1f86fc1e86ecd64fa0
BLAKE2b-256 5602da8934dbe5955e5457ac3df5fa510cde58564652cc491a9ac148011588d5

See more details on using hashes here.

File details

Details for the file swarmauri_parser_keywordextractor-0.9.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.9.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 44a5c594dfad84052f0373e878562fb85fba84e886a68d12ade8b9db724a5d5c
MD5 900f4f6a67e203c924d2f1141c1b7653
BLAKE2b-256 d9bf9519762f4c00579dac8f918ffea32b5bf61afbf9f16bbf0176b09e1fc69d

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