-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix albert tokenizer #1535
Fix albert tokenizer #1535
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pad_token="[PAD]", | ||
cls_token="[CLS]", | ||
mask_token="[MASK]"): | ||
def __init__(self, vocab_file, do_lower_case=False, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还要确认下这里使用**kwargs
是否合适及加载既有保存的config是否有问题,咱们的基类会将init的参数作为config进行保存
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里使用 kwargs 可以使得用 from_pretrained 方法的时候可以传入自定义的config参数;
经过自测,可以加载既有保存的config。
PR types
Bug fixes
PR changes
Models
Description
Fix albert tokenizer