from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
pipeline_ins = pipeline(
'fill-mask',
model='dienstag/chinese-pert-base',
model_revision='v1.0.0'
)
print(pipeline_ins('巴黎是[MASK]国的首都。'))
Under construction…
Please visit our GitHub repo for more information: https://github.com/ymcui/PERT