Update README.md
Browse files
README.md
CHANGED
@@ -44,7 +44,7 @@ parameters:
|
|
44 |
|
45 |
A fine-tuned version of [google/t5-v1_1-large](https://huggingface.co/google/t5-v1_1-large) for grammar correction on an expanded version of the [JFLEG](https://paperswithcode.com/dataset/jfleg) dataset.
|
46 |
|
47 |
-
usage in Python:
|
48 |
|
49 |
```
|
50 |
from transformers import pipeline
|
@@ -52,9 +52,12 @@ from transformers import pipeline
|
|
52 |
corrector = pipeline(
|
53 |
'text2text-generation',
|
54 |
'pszemraj/grammar-synthesis-large',
|
55 |
-
|
56 |
)
|
|
|
|
|
|
|
57 |
```
|
|
|
58 |
## Model description
|
59 |
|
60 |
The intent is to create a text2text language model that successfully completes "single-shot grammar correction" on a potentially grammatically incorrect text **that could have a lot of mistakes** with the important qualifier of _it does not semantically change text/information that IS grammatically correct._
|
|
|
44 |
|
45 |
A fine-tuned version of [google/t5-v1_1-large](https://huggingface.co/google/t5-v1_1-large) for grammar correction on an expanded version of the [JFLEG](https://paperswithcode.com/dataset/jfleg) dataset.
|
46 |
|
47 |
+
usage in Python (after `pip install transformers`):
|
48 |
|
49 |
```
|
50 |
from transformers import pipeline
|
|
|
52 |
corrector = pipeline(
|
53 |
'text2text-generation',
|
54 |
'pszemraj/grammar-synthesis-large',
|
|
|
55 |
)
|
56 |
+
raw_text = 'i can has cheezburger'
|
57 |
+
results = corrector(raw_text)
|
58 |
+
print(results)
|
59 |
```
|
60 |
+
|
61 |
## Model description
|
62 |
|
63 |
The intent is to create a text2text language model that successfully completes "single-shot grammar correction" on a potentially grammatically incorrect text **that could have a lot of mistakes** with the important qualifier of _it does not semantically change text/information that IS grammatically correct._
|