Swarmauri Parser TextBlob
TextBlob-backed parsers for Swarmauri that split text into sentences or extract noun phrases. Ships two components: TextBlobSentenceParser and TextBlobNounParser.
Features
- Sentence parser returns a
Documentper sentence with metadata identifying the parser. - Noun phrase parser returns the original text plus
metadata['noun_phrases']containing the phrases discovered by TextBlob. - Auto-downloads required NLTK corpora (
punkt_tab) during initialization.
Prerequisites
- Python 3.10 or newer.
- TextBlob and its NLTK dependencies (installed automatically).
- Internet access on first run so NLTK can download tokenizer data (or pre-download via
python -m textblob.download_corpora).
Installation
# pip
pip install swarmauri_parser_textblob
# poetry
poetry add swarmauri_parser_textblob
# uv (pyproject-based projects)
uv add swarmauri_parser_textblob
Sentence Parsing
from swarmauri_parser_textblob import TextBlobSentenceParser
parser = TextBlobSentenceParser()
text = "One more large chapula please. It should be extra spicy!"
sentences = parser.parse(text)
for doc in sentences:
print(doc.content)
Noun Phrase Extraction
from swarmauri_parser_textblob import TextBlobNounParser
parser = TextBlobNounParser()
docs = parser.parse("One more large chapula please.")
for doc in docs:
print(doc.content)
print(doc.metadata["noun_phrases"])
Tips
- TextBlob uses simple heuristics—it works well for general English text but may struggle with domain-specific jargon.
- Download corpora once in CI/CD or container builds (
python -m textblob.download_corpora) to avoid runtime downloads. - Combine sentence and noun parsers to build structured representations of documents before vectorization or downstream NLP tasks.
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_textblob 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swarmauri_parser_textblob-0.10.0.tar.gz | 7.9 kB | Without provenance | Details for swarmauri_parser_textblob-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarmauri_parser_textblob-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for swarmauri_parser_textblob-0.10.0-py3-none-any.whl |
Total release size: 17.3 kB
Release files / swarmauri_parser_textblob-0.10.0.tar.gz
| Download URL | swarmauri_parser_textblob-0.10.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c62d118177434f6150f7630f7c11f0feac10740bae4ea650334bcda5fa11e995
|
|
BLAKE2b-256 checksum How to use checksums |
293814255219fa8aae6b659585adaa47224046499948978a02d24e39f0a7cc46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / swarmauri_parser_textblob-0.10.0-py3-none-any.whl
| Download URL | swarmauri_parser_textblob-0.10.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07b4d80af4685c9b9bfbcf9fbd8520b959d963e3ae5abdfa1785737f64fd5f87
|
|
BLAKE2b-256 checksum How to use checksums |
5968bd64b0d05530f3f55299043094925687274cfb27d94bb1431d82fe16c751
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for swarmauri_parser_textblob 0.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.