赞
踩
参考:https://huggingface.co/docs/transformers/model_doc/auto#transformers.AutoModelForMaskedLM
预测mask值可以
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer1 = AutoTokenizer.from_pretrained("bert-base-chinese")
model1 = AutoModelForMaskedLM.from_pretrained("bert-base-chinese")
from transformers import FillMaskPipeline
text =
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。