Update README.md
Browse files
README.md
CHANGED
@@ -33,9 +33,9 @@ ta ohow to remove trents in these nalitives from time series"
|
|
33 |
|
34 |
parameters:
|
35 |
max_length: 128
|
36 |
-
min_length:
|
37 |
-
num_beams:
|
38 |
-
repetition_penalty: 1.
|
39 |
length_penalty: 1
|
40 |
early_stopping: True
|
41 |
---
|
@@ -51,7 +51,7 @@ usage in Python (after `pip install transformers`):
|
|
51 |
from transformers import pipeline
|
52 |
corrector = pipeline(
|
53 |
'text2text-generation',
|
54 |
-
'pszemraj/grammar-synthesis-
|
55 |
)
|
56 |
raw_text = 'i can has cheezburger'
|
57 |
results = corrector(raw_text)
|
|
|
33 |
|
34 |
parameters:
|
35 |
max_length: 128
|
36 |
+
min_length: 2
|
37 |
+
num_beams: 8
|
38 |
+
repetition_penalty: 1.3
|
39 |
length_penalty: 1
|
40 |
early_stopping: True
|
41 |
---
|
|
|
51 |
from transformers import pipeline
|
52 |
corrector = pipeline(
|
53 |
'text2text-generation',
|
54 |
+
'pszemraj/grammar-synthesis-small',
|
55 |
)
|
56 |
raw_text = 'i can has cheezburger'
|
57 |
results = corrector(raw_text)
|