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.
Metadata
Release files for swarmauri_parser_keywordextractor 0.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_parser_keywordextractor-0.7.5.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_parser_keywordextractor-0.7.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 kB
Release files / swarmauri_parser_keywordextractor-0.7.5.tar.gz
| Download URL | swarmauri_parser_keywordextractor-0.7.5.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2de376546ca71c01fa69ee3c03679142bdd8637cfd3c7578d6b3c7a4b510864a
|
|
BLAKE2b-256 checksum How to use checksums |
6e84a8bcd31c76491c11b324b1791700ddba3c1fc4817d022e2f86e6b3f4e18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.7
|
Release files / swarmauri_parser_keywordextractor-0.7.5-py3-none-any.whl
| Download URL | swarmauri_parser_keywordextractor-0.7.5-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1955364d0f3ab2dba6f20feb583d6cee0ea8c37bf9fa1a4ac9799ada0204e147
|
|
BLAKE2b-256 checksum How to use checksums |
4162cc9e538f2d02fa7cbcaa3fc8ee79c369b13f50d69c48c86f653f08458f02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.7
|