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.8a7

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.8a7
File Size Uploaded Provenance Actions
quebra_frases-0.3.8a7.tar.gz 26.9 kB Without provenance Details for quebra_frases-0.3.8a7.tar.gz

Built distribution (wheel)

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

Total release size: 41.4 kB

Release files / quebra_frases-0.3.8a7.tar.gz

Download URL quebra_frases-0.3.8a7.tar.gz
Size 26.9 kB
Tags Source
SHA-256 checksum
How to use checksums
87b0001a1e4296fb9527f85fdebca1a801b84545326e939fb71d05fb5f201b1b
BLAKE2b-256 checksum
How to use checksums
6aa12766649b4e07f40dfda9038d87980f22cfdcff73b9585c5b277ab421a175
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.8a7-py3-none-any.whl

Download URL quebra_frases-0.3.8a7-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d857393227f78d104d2e4c9556d1cd86010312c3c391234d237b95ff53f515b8
BLAKE2b-256 checksum
How to use checksums
6169f582446356a308af4eebbcaaa87ddae7a00a872c6cc65d1b0000b4be6a7b
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.8a7

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