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

swarmauri_parser_keywordextractor-0.7.2.tar.gz (6.8 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.2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.2.tar.gz
Algorithm Hash digest
SHA256 d0d2cea8f373739c482afd0298549c71eb59e8aac8fad728ce78f2df73489d05
MD5 9c4a3218f22b5993f0815d7c85ac77d1
BLAKE2b-256 717997d6764f38b5496f5e0a8987150bb63b36a92e6d873ca49bca80143eee43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 38c852caba59cd85630f93dfeadec29ed0f896ed770afdcab08a29328863c25c
MD5 d0a97c074eea15bb07a6e07ffbed4815
BLAKE2b-256 597a58da44b971ad46a0535f1adc5c26f1cb3a686237ce71cfcec6f63ac3a3f9

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