Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ophelielacroix committed Nov 15, 2021
1 parent f02259c commit 6da22f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion danlp/models/bert_models.py
Expand Up @@ -597,7 +597,7 @@ def _get_pred(self, tokenizer, model, max_length, sentence):
max_length=max_length, truncation=True, return_overflowing_tokens=True)
if 'overflowing_tokens' in input1 and input1['overflowing_tokens'].shape[1]>0:
warnings.warn('Maximum length for sequence exceeded, truncation may result in unexpected results. Consider running the model on a shorter sequence than {} tokens'.format(max_length))
pred = model(input1['input_ids'])[0] #, token_type_ids=input1['token_type_ids'])[0]
pred = model(input1['input_ids'])[0]

return pred

Expand Down

0 comments on commit 6da22f1

Please sign in to comment.