-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Do not train/pretranslate all if textIds is an empty array #390
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #390 +/- ##
=======================================
Coverage 70.81% 70.81%
=======================================
Files 151 151
Lines 7172 7172
Branches 1121 1121
=======================================
Hits 5079 5079
Misses 1638 1638
Partials 455 455 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit)
src/Serval.Translation/Services/EngineService.cs
line 235 at r1 (raw file):
{ corpus.PretranslateAll = pretranslateCorpus.TextIds is null && pretranslateCorpus.ScriptureRange is null;
This looks great - should there be a test confirming that it works like this?
- only train/pretranslate all if both textIds and scriptureRange are not specified - fixes #383
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @johnml1135)
src/Serval.Translation/Services/EngineService.cs
line 235 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
This looks great - should there be a test confirming that it works like this?
Done.
This should also resolve #385 - to pretranslate on all, both textId and ScriptureRange need to be null, not just textId. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ddaspit)
This change is