Just add “truncation=True” in your pipeline initiation
pipe = pipeline("text-classification", max_length=512, truncation=True)
Just add “truncation=True” in your pipeline initiation
pipe = pipeline("text-classification", max_length=512, truncation=True)