Skip to content

Commit

Permalink
remove token_type_ids from TokenizerBertGeneration output (#10070)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadakmed committed Feb 8, 2021
1 parent e4bf991 commit 84acf0c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class BertGenerationTokenizer(PreTrainedTokenizer):
pretrained_vocab_files_map = {"vocab_file": {"bert_for_seq_generation": tokenizer_url}}
max_model_input_sizes = {"bert_for_seq_generation": 512}
prefix_tokens: List[int] = []
model_input_names = ["input_ids", "attention_mask"]

def __init__(
self,
Expand Down

0 comments on commit 84acf0c

Please sign in to comment.