Skip to main content

Keyword Extractor Parser for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads 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.4.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.4.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.4.tar.gz
Algorithm Hash digest
SHA256 80d48255e779744596613616a0dd730b8ec4c06479cb969d4b6a6f9eca81de43
MD5 b6bf904d87508834fe8dec49f2ca9173
BLAKE2b-256 c63f4685328c02cc420115b2f128c142c9e4e1c7c0a9bbcc833273497f84e3d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0dbfe09ca3dec10964ffd63f41317e0947f4bce0ef7df56521dc7385ae49f0a1
MD5 834f52d531ba199860ce0e44ed247a05
BLAKE2b-256 01a1b8073a20448b3b1338b56256fe8b2ac055882072e814de9a0011aeeb950c

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