File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,14 +97,14 @@ ner(["热梅茶是一道以梅子为主要原料制作的茶饮",
97
97
``` python
98
98
from paddlenlp import Taskflow
99
99
100
- text_correction = Taskflow(" text_correction" )
101
- text_correction (' 遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。' )
100
+ corrector = Taskflow(" text_correction" )
101
+ corrector (' 遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。' )
102
102
>> > [{' source' : ' 遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。' ,
103
103
' target' : ' 遇到逆境时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。' ,
104
104
' errors' : [{' position' : 3 , ' correction' : {' 竟' : ' 境' }}]}
105
105
]
106
106
107
- text_correction ([' 遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。' ,
107
+ corrector ([' 遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。' ,
108
108
' 人生就是如此,经过磨练才能让自己更加拙壮,才能使自己更加乐观。' ])
109
109
>> > [{' source' : ' 遇到逆竟时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。' ,
110
110
' target' : ' 遇到逆境时,我们必须勇于面对,而且要愈挫愈勇,这样我们才能朝著成功之路前进。' ,
You can’t perform that action at this time.
0 commit comments