Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

quebra_frases

quebra_frases splits text into words, sentences, paragraphs and chunks. Each splitter also has a form that returns the character offsets of each piece. The sentence splitter knows abbreviations, initials, unit symbols and ordinals, and it splits scripts that write no space between sentences.

Quickstart

pip install --pre quebra_frases
>>> from quebra_frases import word_tokenize, sentence_tokenize, chunk
>>> word_tokenize("O Pedro pagou 2,50 € às 14:30.")
['O', 'Pedro', 'pagou', '2,50', '€', 'às', '14:30', '.']
>>> sentence_tokenize("Mr. Smith paid 1.5 million. Did he mind?")
['Mr. Smith paid 1.5 million.', 'Did he mind?']
>>> chunk("turn on the light and the fan", ["light", "fan"])
['turn on the', 'light', 'and the', 'fan']

The package needs Python 3.11 or later, and its only dependency is regex. The --pre flag installs the latest alpha release.

Documentation

Start with Getting started. The documentation index lists every page in reading order, and the API reference lists every public function.

The examples/ folder holds five scripts that you can run: word tokens, sentences and paragraphs, whitespace spans, chunking, and sample comparison.

License

Apache-2.0. See LICENSE.

Metadata

Release files for quebra-frases 0.3.8a8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quebra-frases 0.3.8a8
File Size Uploaded Provenance Actions
quebra_frases-0.3.8a8.tar.gz 28.3 kB Without provenance Details for quebra_frases-0.3.8a8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quebra-frases 0.3.8a8
File Interpreter ABI Platform Actions
quebra_frases-0.3.8a8-py3-none-any.whl Python 3 none any Details for quebra_frases-0.3.8a8-py3-none-any.whl

Total release size: 43.0 kB

Release files / quebra_frases-0.3.8a8.tar.gz

Download URL quebra_frases-0.3.8a8.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
38ea486c5c1202f4fca0aa41252757caf24d79a521e50b663a913be1acc80b2f
BLAKE2b-256 checksum
How to use checksums
c9be7a4c187177bd2c77b59450285914e2b299a3d92bbf876a31713c0b53e2e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / quebra_frases-0.3.8a8-py3-none-any.whl

Download URL quebra_frases-0.3.8a8-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
901f3a04ab87fe066cb85a622b9d107b14a0781288ea5408c3b6a48c7d08d8ec
BLAKE2b-256 checksum
How to use checksums
f0decbdb878138db72f62c5eb595f95988910e7bcc3d708347e1ad1adb240239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for quebra-frases 0.3.8a8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page