Update README.md
Browse files
README.md
CHANGED
|
@@ -28,8 +28,8 @@ This model was obtained by fine-tuning the corresponding `ClueAI/PromptCLUE-base
|
|
| 28 |
```python
|
| 29 |
from transformers import AutoTokenizer, T5ForConditionalGeneration
|
| 30 |
|
| 31 |
-
tokenizer = AutoTokenizer.from_pretrained("CodeTed/
|
| 32 |
-
model = T5ForConditionalGeneration.from_pretrained("CodeTed/
|
| 33 |
input_text = '糾正句子裡的錯字: 看完那段文張,我是反對的!'
|
| 34 |
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
|
| 35 |
outputs = model.generate(input_ids, max_length=256)
|
|
|
|
| 28 |
```python
|
| 29 |
from transformers import AutoTokenizer, T5ForConditionalGeneration
|
| 30 |
|
| 31 |
+
tokenizer = AutoTokenizer.from_pretrained("CodeTed/Chinese_Grammarly")
|
| 32 |
+
model = T5ForConditionalGeneration.from_pretrained("CodeTed/Chinese_Grammarly")
|
| 33 |
input_text = '糾正句子裡的錯字: 看完那段文張,我是反對的!'
|
| 34 |
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
|
| 35 |
outputs = model.generate(input_ids, max_length=256)
|