Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #892 +/- ##
==========================================
+ Coverage 67.42% 67.52% +0.10%
==========================================
Files 385 385
Lines 21096 21107 +11
Branches 2751 2748 -3
==========================================
+ Hits 14223 14253 +30
+ Misses 5889 5870 -19
Partials 984 984 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ddaspit
left a comment
There was a problem hiding this comment.
@ddaspit reviewed 13 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Enkidu93).
src/Serval/src/Serval.Translation/Models/Pretranslation.cs line 18 at r1 (raw file):
public IEnumerable<string>? TranslationTokens { get; init; } public IReadOnlyList<AlignedWordPair>? Alignment { get; init; } public double Confidence { get; init; }
This should be optional. Old pretranslations won't have confidence set.
Enkidu93
left a comment
There was a problem hiding this comment.
@Enkidu93 made 1 comment.
Reviewable status: 11 of 13 files reviewed, 1 unresolved discussion (waiting on ddaspit).
src/Serval/src/Serval.Translation/Models/Pretranslation.cs line 18 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
This should be optional. Old pretranslations won't have confidence set.
Done. Out of curiosity, why not just have a default value here? Why do we rather make it optional here and then provide an explicit default at the DTO level?
ddaspit
left a comment
There was a problem hiding this comment.
@ddaspit reviewed 2 files and all commit messages, made 2 comments, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Enkidu93).
src/Serval/src/Serval.Translation/Models/Pretranslation.cs line 18 at r1 (raw file):
Previously, Enkidu93 (Eli C. Lowry) wrote…
Done. Out of curiosity, why not just have a default value here? Why do we rather make it optional here and then provide an explicit default at the DTO level?
I don't have a problem with providing a default value here. We just need to do it somewhere.
550d505 to
078a21c
Compare
Enkidu93
left a comment
There was a problem hiding this comment.
OK, I was mistaken. machine.py is using 2 beams on production. I failed to noticed that for docker-compose jobs, it defaults to using one beam in the settings.yaml . I have updated the E2E test to specify 2 beams explicitly; also I had to switch to using the 600m model (rather than the random model) and up the steps in order to get non-empty translations. If you'd prefer, I can revert these changes and remove the confidence check in the E2E test (if you're satisfied with other testing).
@Enkidu93 made 1 comment.
Reviewable status: 9 of 13 files reviewed, all discussions resolved (waiting on ddaspit).
ddaspit
left a comment
There was a problem hiding this comment.
How much does using NLLB impact how long it takes to run the E2E tests?
@ddaspit reviewed 4 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Enkidu93).
Good question! Just tested: About a minute (it's just the one E2E test that I updated). |
ddaspit
left a comment
There was a problem hiding this comment.
That sounds fine.
@ddaspit made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on Enkidu93).
Fixes #879.
I'll want to test this end-to-end once sillsdev/machine.py#268 is complete and a docker image is created.
Also, made a few small typo-ish fixes.
This change is