COMBO-SEG
Character-level segmentation model for natural language text.
COMBO-SEG segments raw text into turns, sentences, tokens, and words using a transformer-based character-level classifier. Supports 80+ languages.
Output hierarchy: Document → Turn[] → Sentence[] → Token[] (matches LAMBO). Turns are produced by regexp separators (by default double newline \n\n and <turn>) before the neural model splits each turn into sentences and tokens.
Installation
pip install combo-seg
Usage
from combo_seg import ComboSeg, Language, SplitLevel
segmenter = ComboSeg(language=Language.POLISH)
doc = segmenter("Ala ma kota. Kot ma Alę.\n\nDrugi akapit.")
for turn in doc.turns:
for sentence in turn.sentences:
print(sentence.text)
for token in sentence.tokens:
print(f" {token.text}")
# Pass split_level=SplitLevel.TURN to collapse each turn into one Sentence.
License
GPL-3.0
Metadata
Release files for combo-seg 0.1.6
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 |
|---|---|---|---|---|
| combo_seg-0.1.6.tar.gz | 66.2 kB | Without provenance | Details for combo_seg-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| combo_seg-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for combo_seg-0.1.6-py3-none-any.whl |
Total release size: 122.6 kB
Release files / combo_seg-0.1.6.tar.gz
| Download URL | combo_seg-0.1.6.tar.gz |
|---|---|
| Size | 66.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7d9ed2de937417711e53e077c8707489adc62a20d778f0661adc2fa5db75a34
|
|
BLAKE2b-256 checksum How to use checksums |
83dca92a62cba98a5a973dd3cdc14a0a9d130d622e5b484c738b95fc6be5d9ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / combo_seg-0.1.6-py3-none-any.whl
| Download URL | combo_seg-0.1.6-py3-none-any.whl |
|---|---|
| Size | 56.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3d4747050df8abe466b0576cc38907b6ef483c03ab330696327e741ac3e765d
|
|
BLAKE2b-256 checksum How to use checksums |
14e3f43a46f5b4e7c4c9e90c466cc6fee872cb80114898c4cda8d826cacb3957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for combo-seg 0.1.6
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.