|
--- |
|
languages: en |
|
license: apache-2.0 |
|
tags: |
|
- neuspell |
|
- spelling |
|
- spell-correction |
|
--- |
|
# neuspell-scrnn-probwordnoise |
|
|
|
> towards a reliable workaround for the `neuspell` lib being broken. |
|
|
|
See the [github repository](https://github.com/neuspell/neuspell) for usage and all official information. |
|
|
|
|
|
## usage |
|
|
|
clone this model repo with git: |
|
|
|
```bash |
|
sudo apt-get install git-lfs -q |
|
git clone https://huggingface.co/pszemraj/neuspell-scrnn-probwordnoise |
|
``` |
|
|
|
install neuspell: |
|
|
|
```bash |
|
pip install -U neuspell -q |
|
``` |
|
|
|
use in python for spell correction: |
|
|
|
```python |
|
from neuspell import SclstmChecker |
|
|
|
checker = SclstmChecker() |
|
checker.from_pretrained("./neuspell-scrnn-probwordnoise/") |
|
|
|
checker.correct("I luk foward to receving your reply") # correct a string |
|
|
|
checker.correct_strings( |
|
["I luk foward to receving your reply", "were did wendigo goe boating?"] |
|
) # correct a list of strings |
|
``` |
|
|