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_token_id=104 #9

Closed
yinzhangyue opened this issue Dec 21, 2021 · 2 comments
Closed

question_token_id=104 #9

yinzhangyue opened this issue Dec 21, 2021 · 2 comments

Comments

@yinzhangyue
Copy link

Hi, I have a quesition when I read the code, question_token_id=104, 104 is [MASK] in BERT vocab.txt, so it is still [MASK] token? This code is in finetuning/modeling.py.
class ModelWithQASSHead(BertPreTrainedModel): def __init__( self, config, replace_mask_with_question_token=False, mask_id=103, question_token_id=104, sep_id=102, initialize_new_qass=True, ):

@oriram
Copy link
Owner

oriram commented Dec 29, 2021

Hi @yinzhangyue, [MASK] is 103 in BERT's vocab (zero-based counting). Our special [QUESTION] token is 104.

@oriram oriram closed this as completed Dec 29, 2021
@yinzhangyue
Copy link
Author

OK I get it. thx!

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

2 participants