shibing624
commited on
Commit
·
6f0736b
1
Parent(s):
daf5dc4
Update README.md
Browse files
README.md
CHANGED
@@ -37,7 +37,7 @@ pip install -U pycorrector
|
|
37 |
|
38 |
```python
|
39 |
from pycorrector import GptCorrector
|
40 |
-
model =
|
41 |
r = model.correct_batch(["少先队员因该为老人让坐。"])
|
42 |
print(r) # ['少先队员应该为老人让座。']
|
43 |
```
|
|
|
37 |
|
38 |
```python
|
39 |
from pycorrector import GptCorrector
|
40 |
+
model = GptCorrector("THUDM/chatglm3-6b", "chatglm", peft_name="shibing624/chatglm3-6b-csc-chinese-lora")
|
41 |
r = model.correct_batch(["少先队员因该为老人让坐。"])
|
42 |
print(r) # ['少先队员应该为老人让座。']
|
43 |
```
|