|
Download README.md from Ransaka/sinhala-charbert-seq2seq: direct link, hf CLI and curl.
- Browser
- Download file 792 Bytes
-
https://huggingface.co/Ransaka/sinhala-charbert-seq2seq/resolve/main/README.md
- Command line
-
hf download hf://Ransaka/sinhala-charbert-seq2seq/README.md
-
curl -L -o README.md https://huggingface.co/Ransaka/sinhala-charbert-seq2seq/resolve/main/README.md
792 Bytes
| language: si | |
| license: mit | |
| tags: [sinhala, typo-correction, charbert, seq2seq, sinlib] | |
| # Sinhala-CharBERT Seq2Seq Typo Corrector | |
| Open-vocabulary seq2seq typo corrector for Sinhala. Dual-channel | |
| (subword + phonological akshara) encoder with an autoregressive | |
| akshara-level Transformer decoder. Designed as the optional neural | |
| backend (`neural_backend="seq2seq" | "hybrid"`) of | |
| [sinlib](https://pypi.org/project/sinlib/)'s `TypoDetector`. | |
| ## Usage | |
| ```python | |
| from sinlib import TypoDetector | |
| detector = TypoDetector(neural_backend="hybrid") # uses this repo by default | |
| print(detector("මම ගෙදර යන්ඩ ඕනේ")) # මම ගෙදර යන්න ඕනේ | |
| print(detector("මම gedara යන්න ඕනේ")) # මම ගෙදර යන්න ඕනේ | |
| ``` | |