-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Add more special tokens #71
Conversation
ai21_tokenizer/jurassic_tokenizer.py
Outdated
|
||
self._newline_piece = config.get("newline_piece") | ||
self.newline_id = self.convert_tokens_to_ids(self._newline_piece) |
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.
@tomeras91 I see that on line 48 we already have a newline_id
whats the difference?
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.
You're right. I missed it. I'll just make it "public"
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.
Great. Also notice that another function encode
is using it, so make sure you rename it in all places
feat: Add eos_id and newline_id