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

[Question] How to mask token #20

Open
cidrugHug8 opened this issue Oct 21, 2020 · 0 comments
Open

[Question] How to mask token #20

cidrugHug8 opened this issue Oct 21, 2020 · 0 comments

Comments

@cidrugHug8
Copy link

始めまして。

マスクのかけ方について教えてください。

masked_lm_example.ipynb で
['[CLS]', '青葉', '##山', 'で', '[MASK]', 'の', '研究', 'を', 'し', 'て', 'い', 'ます', '。', '[SEP]']
となっているところを
['[CLS]', '青葉', '##山', 'で', '植物', 'の', '研究', 'を', 'し', 'て', 'い', 'ます', '。', '[SEP]']
にして青葉山に相当するところを予測させるには
['[CLS]', '[MASK]', '[MASK]', 'で', '植物', 'の', '研究', 'を', 'し', 'て', 'い', 'ます', '。', '[SEP]']
のように2箇所をマスクすればよいのでしょうか?

よろしくお願いいたします。

@cidrugHug8 cidrugHug8 changed the title [Question] [Question] How to mask token Oct 21, 2020
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