Latvian NLP tools
Project description
lvnlp
Latvian NLP tools for morphosyntactic parsing.
Installation
Install from PyPI:
pip install lvnlp
Or install the latest development version from GitHub:
pip install git+https://github.com/LUMII-AILab/lvnlp.git
Morphosyntactic parsing
from lvnlp.parser import Parser
from lvnlp.parser.utils import to_conll, tokenize_sentence
parser = Parser.from_pretrained()
sentences = [tokenize_sentence('Jānis brauca uz Rīgu.')]
sentences = parser.parse(sentences, analyzer=False)
for sentence in sentences:
for token in sentence:
print(token)
print()
print(to_conll(sentences))
The parser can optionally use the Latvian morphological analyzer during decoding. This improves XPOS tagging and lemmatization.
Citation
@inproceedings{znotins-2026-improving,
title = {Improving Latvian Morphosyntactic Parsing with Pretrained Encoders and Analyzer-Constrained Decoding},
author = {Znotins, Arturs},
booktitle = {Proceedings of the Fifteenth Language Resources and Evaluation Conference (LREC 2026)},
month = {May},
year = {2026},
pages = {11724--11734},
address = {Palma, Mallorca, Spain},
publisher = {European Language Resources Association (ELRA)},
editor = {Piperidis, Stelios and Bel, Núria and van den Heuvel, Henk and Ide, Nancy and Krek, Simon and Toral, Antonio},
doi = {10.63317/5khpzsaiqrzw},
url = {https://lrec.elra.info/lrec2026-main-918}
}
Acknowledgements
This work was supported by the EU Recovery and Resilience Facility project Language Technology Initiative (2.3.1.1.i.0/1/22/I/CFLA/002).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lvnlp-0.1.0.tar.gz.
File metadata
- Download URL: lvnlp-0.1.0.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8f2cf6ff6ae4f6b5621a3525fdb79c10d6921812334c9e8a9ad10a8675cbed5
|
|
| MD5 |
64985d5407be037b381f06ec8be9b873
|
|
| BLAKE2b-256 |
cb4b677c164a84676d27d23ff8d00c7cf0e1ec08c059c16c723109d263b9f3d8
|
File details
Details for the file lvnlp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lvnlp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
448e5b686c97cdf16b890d5502369e6324708782d57c90cf9e9ab33417822b4d
|
|
| MD5 |
7709317a4a1099b95e49bebe3d32a075
|
|
| BLAKE2b-256 |
42e73515fd5c49d9bd7b1e1b4448433a28c6193658cea6d01b75e299bce06d12
|