Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

偶尔会将非[MASK]的位置也替换掉 #78

Open
KeepSmile1 opened this issue Aug 8, 2024 · 0 comments
Open

偶尔会将非[MASK]的位置也替换掉 #78

KeepSmile1 opened this issue Aug 8, 2024 · 0 comments

Comments

@KeepSmile1
Copy link

ernie_tokenizer = BertTokenizer.from_pretrained("./llm_model/ernie-3.0-base/ernie-3.0-base-zh")
ernie_model = ErnieForMaskedLM.from_pretrained("./llm_model/ernie-3.0-base/ernie-3.0-base-zh")

输入的text:[MASK]2023年10月29日[MASK]

得到结果:有202##3年10月29日?

句子中间并没有[MASK],为什么会替换为##

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant