-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We accept TranslationRequest now, and vector<text>
Towards #77. - What was earlier translateWithOptions is now renamed to translate, making it a method overload based on arguments. - A new translateMultiple is provided, which is blocking. This allows the browser to sent separate vector<text> which is queued as a whole, but each text maps to a Request each for which there is a Response. This is closer to what exists in TranslationModel as of now, except there are speed gains from properly batching. translateMultiple accepts TranslationRequest as well, although it does nothing with it.
- Loading branch information
Jerin Philip
committed
Apr 7, 2021
1 parent
c7400f6
commit 5bf29c1
Showing
3 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters