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.3.tar.gz (6.9 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.3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.3.tar.gz
Algorithm Hash digest
SHA256 60fbac8ebad862a7e5f6d57375b86b5f6708a32bd6fd4f796d8252420f282cbd
MD5 b42bf6314da87c149f62f9c2e7a24ebe
BLAKE2b-256 3ba027794d63fcc4b6f575975acefc9aa59db0be90858cd299be2a67ac54ae79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a323489301b0bf672eb2a71733cac9ab5bc9cf0711d687cf9a139ac5553495d
MD5 4cce80234ecaa2dbcebb4f93895626df
BLAKE2b-256 bd4fbcf98a889c582dec40a39ed39a8673b133e04a29329e9b4b8488229939a5

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