COMBO-NLP
A library for Morphosyntactic Tagging and Dependency Parsing based on Universal Dependencies.
Installation
pip install combo-nlp
LAMBO segmenter (optional)
A segmenter is only needed when passing raw text strings to COMBO. If you provide pre-tokenized input (list[str] or list[list[str]]), no segmenter is required.
When you initialize COMBO with a language name (e.g. COMBO("Polish")), it automatically loads a LAMBO segmenter. If LAMBO is not installed, an ImportError is raised. LAMBO is hosted on a custom PyPI index and must be installed separately:
pip install --index-url https://pypi.clarin-pl.eu/ lambo
Usage
Full text input
from combo import COMBO
# Load by HuggingFace model ID:
nlp = COMBO.from_pretrained("clarin-pl/combo-nlp-xlm-roberta-base-polish-pdb-ud2.17")
result = nlp("Ala ma kota.")
# Or load by language name (with Lambo segmenter):
nlp = COMBO("Polish")
result = nlp("Ala ma kota.")
# Or use the Language enum:
from combo import Language
nlp = COMBO(Language.POLISH)
result = nlp("Ala ma kota.")
# Multiple sentences:
result = nlp(["Ala ma kota.", "Kot śpi na kanapie."])
# Access results:
for sentence in result:
for token in sentence:
print(token.form, token.upos, token.head, token.deprel, token.lemma)
Pre-tokenized input
from combo import COMBO
nlp = COMBO.from_pretrained("clarin-pl/combo-nlp-xlm-roberta-base-polish-pdb-ud2.17")
# Single sentence:
result = nlp(["Ala", "ma", "kota", "."], tokenized=True)
# Multiple sentences:
result = nlp([["Ala", "ma", "kota", "."], ["Kot", "śpi", "na", "kanapie", "."]], tokenized=True)
Metadata
Release files for combo-nlp 4.0.14
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_nlp-4.0.14.tar.gz | 95.2 kB | Without provenance | Details for combo_nlp-4.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| combo_nlp-4.0.14-py3-none-any.whl | Python 3 | none | any | Details for combo_nlp-4.0.14-py3-none-any.whl |
Total release size: 201.6 kB
Release files / combo_nlp-4.0.14.tar.gz
| Download URL | combo_nlp-4.0.14.tar.gz |
|---|---|
| Size | 95.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70cb29288131f5ad442ab025fd287a2911c3f523a0d5a7050bc543db01aef140
|
|
BLAKE2b-256 checksum How to use checksums |
48a357ee0639607b1f4c9ccf8f8bdd81e151d12e97563c24b70978efb1ca706e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / combo_nlp-4.0.14-py3-none-any.whl
| Download URL | combo_nlp-4.0.14-py3-none-any.whl |
|---|---|
| Size | 106.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46bb5439b7019df425c2139396e3815a3deb7716beab67928efd5f808f794702
|
|
BLAKE2b-256 checksum How to use checksums |
9362847926dc72a9abe7616e7ec6b0e25b5db5f8cd86d9671ec911305335d779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for combo-nlp 4.0.14
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.