Skip to content

Commit

Permalink
Rename 'is_pretokenized' to 'is_split_into_words' for Tokenizers
Browse files Browse the repository at this point in the history
  • Loading branch information
HHousen authored May 31, 2021
1 parent 20c8cac commit 03eeee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abstractive.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def convert_to_features(example_batch):
sents_input_ids = self.tokenizer.encode_plus(
sents_tokenized_flat,
truncation=True,
is_pretokenized=True,
is_split_into_words=True,
add_special_tokens=False,
max_length=(max_length - 2),
return_attention_mask=False,
Expand Down

0 comments on commit 03eeee8

Please sign in to comment.