Helsinki-NLP / OPUS-MT-train

Training open neural machine translation models
MIT License
326 stars 41 forks source link

Wrong repetitive phrases for chinese to english translation #105

Open thisisandreeeee opened 2 months ago

thisisandreeeee commented 2 months ago

I am trying to translate 缓缓走来 , the correct translation should be come slowly.

However, the response I am getting is Come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on, come on.

This is incorrect. It would be acceptable if the translation is come on, but the repetition is a little odd. Does anyone know why this is happening?

image

jorgtied commented 2 months ago

The models are trained to translate sentences and not smaller fragments or larger text snippets. That might be the case here confusing the model and not figuring out how to end the translation. By the way, did you verify that the original marian-nmt model behaves the same or is this a huggingface problem with the converted models in pytorch?