Python API for Romanian diacritics restoration
Project description
RO Diacritics module
RO Diacritics is a straightforward diacritics restoration module for Romanian Language
from ro_diacritics import restore_diacritics
print(restore_diacritics("fara poezie, viata e pustiu"))
or correcting a pandas dataframe:
from ro_diacritics import restore_diacritics
df['text-diacritice'] = df['text'].apply(restore_diacritics)
Installing
$ python -m pip install ro-diacritics
or
$ pip install ro-diacritics
Requirements
- torch and torchtext
- numpy
- nltk and scikit-learn (for training)
References
- Ruseti, S., Cotet, T. M., & Dascalu, M. (2020). Romanian Diacritics Restoration Using Recurrent Neural Networks. arXiv preprint arXiv:2009.02743.
- https://github.com/teodor-cotet/DiacriticsRestoration
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ro-diacritics-0.9.4.tar.gz
(11.2 kB
view details)
File details
Details for the file ro-diacritics-0.9.4.tar.gz
.
File metadata
- Download URL: ro-diacritics-0.9.4.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3883d6f0976ef691356c37fa61c2ef6ff17c544a983d3e39b38bbe796f2e6ecb |
|
MD5 | 75e8c1339df50cb704be8aafdb6f9000 |
|
BLAKE2b-256 | fe5aa59b695c627e985ed24309e7dab646c6fca398adca07a26c38ad33214b2d |