Pipeline: translation_xx_to_yy not working for Mbart
I’m working on a translation tool using Mbart, and I’m trying to translate some text. I’m using pipeline(“translation_de_to_en”, model=model, tokenizer=tokenizer)which should work, and is how the documentation describes. The error I’m getting is “KeyError: ‘de’”, which I have found out that its the ‘de’ in translation_de_to_en.Anything would be appreciatedI’m using facebook/mbart-large-cc25 btw
2022-05-04T17:13:51Z
were you able to figure out the issue? I’m stuck in a similar situation.