How to give context when translating single words?
Hello,I am looking for advice on how to get good results when translating single words.I am using the pretrained model, opus-mt-en-de, and when i try to translate “September” as a single word, i get the wrong translation.In a sentence it works well.I tried putting all the months in a row with comma’s or periods.Now it translated september correctly but skips one month.How would i go about to add some context when i, for example, want to translate a list of month names?Another example would be the word “Home” as in; homepage and not a house.Is there a way of giving context hints when translating?
2023-12-15T07:25:15Z
Bumping this as I’d love to figure this out as well.My use case is just slightly different. I have a .srt file (subtitle file) that I’m translating and the text is split on multiple lines for a single sentence. I’d love to be able to pass in the previous line as context. Something kind of similar to openai/whisper condition_on_previous_text option (though that’s kind of a different case).