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

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.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.2.dev2.tar.gz
Algorithm Hash digest
SHA256 2458290ae3d804920c522f6b5e43f93b257b1b0363ecc282b4f0e75307d6b37f
MD5 49c367e94102082e550e1b83eb7486d7
BLAKE2b-256 1b7594dfe19c7e04440b08ff7b9c3344e1a23b6d6e63799a0fe2eb2b35d7ff4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_parser_keywordextractor-0.7.2.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4940f564d2eb504c460e334b57cab1d1af0e0bb65886e8dbda5fbd40a61d36b
MD5 1b9a3251d1df2c35a30c2be5db710f94
BLAKE2b-256 7766262dab21a0d5f5f5718252358d5d11798d3057b58bc0ea6d684294b01f35

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