TransDuck Context DemoSame English word, different context → different translation
For this demo, we used the Python package with OpenAI as the AI backend, but all AI providers and LLMs should give you very similar automatic translation results.
# The same English paragraph, translated with different context # Context: restaurant ait( "The manager reviewed the notes on the table. The staff had been " "off the mark all week, and the performance was falling short.", context="A restaurant manager reviewing his waitstaff's poor service" ) # Context: orchestra ait( "The manager reviewed the notes on the table. The staff had been " "off the mark all week, and the performance was falling short.", context="An orchestra conductor unhappy with his musicians' rehearsals" )
| English | Context | English |
|---|