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.7.0.dev12.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.0.dev12.tar.gz
Algorithm Hash digest
SHA256 e4178ac5c768c2ad7986f197699a2b7442203a0682e3d1d5e2fd485107708ce5
MD5 f0db8d607e3dbd3e7247558ab9b25524
BLAKE2b-256 b0afae08e21433c7bec9e040258f8b5a9c392a42dc4d99974c4a447b09892c1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.0.dev12-py3-none-any.whl
Algorithm Hash digest
SHA256 99c021e235a5b553d2b9e5be6fa8264f310442a5a15d979a43eea4d50e3da0bc
MD5 8b6bc626d5af713b4f3c5ab2811ba501
BLAKE2b-256 a6fbd6c9cf463d50dfbae423beaba7fb577a90820ffeb4ffe1ac53b05f98b27c

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