gordicaleksa / Open-NLLB

Effort to open-source NLLB checkpoints.
MIT License
419 stars 37 forks source link

Provide context for input and output #29

Open joiemoie opened 9 months ago

joiemoie commented 9 months ago

🚀 Feature Request

Provide context to the input, but not actually include the context in the translation. Useful for real time translation applications. Also continue translations from context translation.

Example:

Context Input: I’m in a cave and see Input to translate: a bat. Context Output: Estoy en una cueva y veo Translated Output: un murciélago.

Notice how bat (🦇) can also mean baseball bat unless you have the context.

Motivation

Real time translation.

Pitch

I can implement this if given some pointers as well. Thanks!