argos-translate icon indicating copy to clipboard operation
argos-translate copied to clipboard

[Feature request] Support multiple inputs / batch mode

Open JakobEdding opened this issue 3 years ago • 2 comments

I would like to provide a batch of input texts to the library in hopes of increasing GPU utilization and achieving higher throughput of the application in which I use argos-translate. Taking the example from the readme, the API could be like this: translation_en_es.translate(["Hello World!", "How are you?"])

JakobEdding avatar Jan 28 '22 12:01 JakobEdding

yes good idea. what do you think @PJ-Finlay

dingedi avatar Sep 23 '22 10:09 dingedi

bumping this with hope that batch translation will be added 🙏 @PJ-Finlay

marcglobality avatar Aug 02 '23 12:08 marcglobality