File size: 856 Bytes
63b5d8e 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 4abe533 69955b6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
---
license: apache-2.0
---
# neuspell-subwordbert-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-subwordbert-probwordnoise
```
Install `neuspell` from pypi:
```bash
pip install -U neuspell -q
```
Use in python for spell correction:
```python
from neuspell import BertChecker
checker = BertChecker()
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
```
|