orionweller
commited on
Update tokenizer.py
Browse files- 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
|
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
|