rahulvvunbxd
commited on
Commit
•
3e8c321
1
Parent(s):
1e94fa3
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,3 +1,45 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
languages: en
|
3 |
+
license: apache-2.0
|
4 |
+
tags:
|
5 |
+
- neuspell
|
6 |
+
- spelling
|
7 |
+
- spell-correction
|
8 |
+
|
9 |
+
---
|
10 |
+
# neuspell-subwordbert-probwordnoise
|
11 |
+
|
12 |
+
> towards a reliable workaround for the `neuspell` lib being broken
|
13 |
+
|
14 |
+
See the [github repository](https://github.com/neuspell/neuspell) for usage and all official information.
|
15 |
+
|
16 |
+
## Usage
|
17 |
+
|
18 |
+
Clone this model repo with git:
|
19 |
+
|
20 |
+
```bash
|
21 |
+
sudo apt-get install git-lfs -q
|
22 |
+
git clone https://huggingface.co/pszemraj/neuspell-subwordbert-probwordnoise
|
23 |
+
```
|
24 |
+
|
25 |
+
Install `neuspell` from pypi:
|
26 |
+
|
27 |
+
|
28 |
+
```bash
|
29 |
+
pip install -U neuspell -q
|
30 |
+
```
|
31 |
+
|
32 |
+
Use in python for spell correction:
|
33 |
+
|
34 |
+
```python
|
35 |
+
from neuspell import BertChecker
|
36 |
+
|
37 |
+
checker = BertChecker()
|
38 |
+
checker.from_pretrained("./neuspell-subwordbert-probwordnoise/")
|
39 |
+
|
40 |
+
checker.correct("I luk foward to receving your reply") # correct a string
|
41 |
+
|
42 |
+
checker.correct_strings(
|
43 |
+
["I luk foward to receving your reply", "were did wendigo goe boating?"]
|
44 |
+
) # correct a list of strings
|
45 |
+
```
|