Futurewarning pad_to_max_length
Closed this issue · 0 comments
networks1 commented
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, use
padding=Trueor
padding='longest'to pad to the longest sequence in the batch, or use
padding='max_length'to pad to a max length. In this case, you can give a specific length with
max_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).