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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.6.1.dev15.tar.gz
Algorithm Hash digest
SHA256 c7542203a6286021b3fb28c751adb9078fe623597040dd4ab3dc3e7cf94d1c11
MD5 da48dd4c28aa24623df53e42ec70ec3b
BLAKE2b-256 2707dcc37030855790ec97eb88f505c506a40bc12fc5806868d53187b103207e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.6.1.dev15-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ae9d809deb9454ed0ac1f0bffeb554df55ac1c24da93988de5a04878450f22
MD5 1e26702622cfc6b4ff35f7d21e874333
BLAKE2b-256 8ac92136613a726d7569b3d54abe099db498d571761482a7b70c525fa66312ef

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