from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
pipeline_ins = pipeline(
'fill-mask',
model='dienstag/chinese-lert-large',
model_revision='v1.0.0'
)
print(pipeline_ins('生活的真谛是[MASK]。'))
LERT is a linguistically-motivated pre-trained language model.
Further information: https://github.com/ymcui/LERT/blob/main/README_EN.md