-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign workflow #6
Comments
Sketch of the Batcher class:
|
Moved here from slack: std::future -> callback (for WASM)?
Do we have sentence-boundaries from ssplit? I'm not accounting for this at the moment.
I didn't get the part where Uli mentioned having Segment access before translation. Is this a matter of concern?
On implementation:
|
@jerinphilip Based on our discussion on slack and upon some further thought, I'd propose this.
std::vector<std::string> input
andstd::string translation
withstd::vector<SentencePieceText>
and SentencePieceText, respectively.(Background comment: I'm hesitant to touch the Batch class, as it's fairly baked into Marian, so we need some mechanism of mapping sentence-level translations to the respective requests. Currently the TranslationService has a map that maps from unique sentence ids to the respective Jobs and promises.)
Wrt 3., here's what I'd propose for starters:
The text was updated successfully, but these errors were encountered: