Skip to content

Commit 3cd45be

Browse files
wawltorZeyuChen
andauthored
update the text correction in document (#1131)
Co-authored-by: Zeyu Chen <[email protected]>
1 parent 82c32eb commit 3cd45be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/model_zoo/taskflow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ ner(["热梅茶是一道以梅子为主要原料制作的茶饮",
9797
```python
9898
from paddlenlp import Taskflow
9999

100-
text_correction = Taskflow("text_correction")
101-
text_correction('遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。')
100+
corrector = Taskflow("text_correction")
101+
corrector('遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。')
102102
>>> [{'source': '遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。',
103103
'target': '遇到逆境时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。',
104104
'errors': [{'position': 3, 'correction': {'': ''}}]}
105105
]
106106

107-
text_correction(['遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。',
107+
corrector(['遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。',
108108
'人生就是如此,经过磨练才能让自己更加拙壮,才能使自己更加乐观。'])
109109
>>> [{'source': '遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。',
110110
'target': '遇到逆境时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。',

0 commit comments

Comments
 (0)