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)
- needs nltk.download('punkt') for tokenization
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
Metadata
Release files for ro-diacritics 0.9.4.2
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 |
|---|---|---|---|---|
| ro-diacritics-0.9.4.2.tar.gz | 12.5 kB | Without provenance | Details for ro-diacritics-0.9.4.2.tar.gz |
Release files / ro-diacritics-0.9.4.2.tar.gz
| Download URL | ro-diacritics-0.9.4.2.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92bffa40355c4120b10354b783c8950c82d48da005757546cf86c00894a3e321
|
|
BLAKE2b-256 checksum How to use checksums |
b41f8c4f370f9ea7c229f6a5d54678fed1002acc3e7adb8bf895e3aa934211db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for ro-diacritics 0.9.4.2
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.