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

swarmauri_parser_keywordextractor-0.6.1.tar.gz (6.6 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.6.1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.6.1.tar.gz
Algorithm Hash digest
SHA256 462c3c64fe9c989ee148c61576c7b6180ce78e3b4df49510686ebd1b41168767
MD5 c156c4d290378b4f237fd1824073c0d2
BLAKE2b-256 f620dd257394ebbb5bdb4a9d210d7ca14eb5a8a4c6be34a48376a30ebfa195ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a9dbc75ae27e6232c207140113d1427201f009ef63475837165bf09e6e4530a
MD5 ff245552be122016bffde07b62cd782d
BLAKE2b-256 70e7cd75b516af143e21c6019eae6fddb02c9254f832e62e83301616b0f0fd33

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