Skip to content

Commit

Permalink
Fix typo in tokenizers.js (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova authored Jan 14, 2024
1 parent 935274f commit b07336d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokenizers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2463,7 +2463,7 @@ export class PreTrainedTokenizer extends Callable {
this.sep_token = this.getToken('sep_token');
this.sep_token_id = this.model.tokens_to_ids.get(this.sep_token);

this.unk_token = this.getToken(tokenizerConfig, 'unk_token');
this.unk_token = this.getToken('unk_token');
this.unk_token_id = this.model.tokens_to_ids.get(this.unk_token);

this.model_max_length = tokenizerConfig.model_max_length;
Expand Down

0 comments on commit b07336d

Please sign in to comment.