fhamborg/NewsMTSC

Futurewarning pad_to_max_length

Closed this issue · 0 comments

Every call to tsc.infer_from_text generates warning:

FutureWarning: The pad_to_max_lengthargument is deprecated and will be removed in a future version, usepadding=Trueorpadding='longest'to pad to the longest sequence in the batch, or usepadding='max_length'to pad to a max length. In this case, you can give a specific length withmax_length(e.g.max_length=45) or leave max_length to None to pad to the maximal input size of the model (e.g. 512 for Bert).