orionweller commited on
Commit
edca2d8
·
verified ·
1 Parent(s): 3901bef

Update tokenizer.py

Browse files
Files changed (1) hide show
  1. tokenizer.py +1 -1
tokenizer.py CHANGED
@@ -6,7 +6,7 @@ class ModernDecoderBERTTokenizer(PreTrainedTokenizerFast):
6
 
7
  def _batch_encode_plus(self, *args, **kwargs):
8
  outputs = super()._batch_encode_plus(*args, **kwargs)
9
- if "token_type_ids" in output:
10
  del outputs["token_type_ids"]
11
 
12
  # Get the input_ids to check for EOS tokens
 
6
 
7
  def _batch_encode_plus(self, *args, **kwargs):
8
  outputs = super()._batch_encode_plus(*args, **kwargs)
9
+ if "token_type_ids" in outputs:
10
  del outputs["token_type_ids"]
11
 
12
  # Get the input_ids to check for EOS tokens