-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Constructs to make Response members optional
Towards #77. Brings in the concept of ResponseOptions, which should be the intended outcome of TranslationRequest, providing additional options along with the source string describing how to construct Response. It's currently typedef-ed to Ptr<marian::Options>, and subject to change if and when UnifiedAPI can bring it's own proper equivalent. Through options, ResponseBuilder now has if-guards to construct QualityScores or Alignments making it a no-op if the options are unset, bringing in the desired feature, albeit with a reinvented wheel structure which is not improper.
- Loading branch information
Jerin Philip
committed
Apr 2, 2021
1 parent
42e1ddc
commit 8f2e84e
Showing
4 changed files
with
49 additions
and
20 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
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