-
-
Notifications
You must be signed in to change notification settings - Fork 3
Align pretranslations by default #195
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
Conversation
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 r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ddaspit)
How come Isaac's approval isn't enough for me to merge this in 🤔? Surely you have write access, @isaac091? |
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.
It looks like Isaac just left a comment and didn't actually approve the PR.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93)
machine/jobs/build_nmt_engine.py
line 58 at r1 (raw file):
raise TypeError(f"Build options could not be parsed: {e}") from e SETTINGS.update({model_type: build_options}) if "align_pretranslations" in build_options:
I don't think we want to remove this. We want a way to disable alignments using build options.
Previously, ddaspit (Damien Daspit) wrote…
Do you expect that we'd need to be able to turn this off from the client side though? My thinking was that now SF or some other client could turn off alignments at build time and then when they go to fetch USFM and place markers, it won't work properly, but there won't be visibility as to why. As it stands, this is something we could still turn off from within Serval when we define the machine.py script I believe. |
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.
Oh, yes 😆, thank you. I'm so used to = approved.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit)
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.
Yeah sorry, I was letting Damien have the final say.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ddaspit)
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: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93)
machine/jobs/build_nmt_engine.py
line 58 at r1 (raw file):
Previously, Enkidu93 (Eli C. Lowry) wrote…
Do you expect that we'd need to be able to turn this off from the client side though? My thinking was that now SF or some other client could turn off alignments at build time and then when they go to fetch USFM and place markers, it won't work properly, but there won't be visibility as to why. As it stands, this is something we could still turn off from within Serval when we define the machine.py script I believe.
I was thinking it might be useful to turn it off for testing purposes.
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.
No worries - makes sense.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @ddaspit and @isaac091)
machine/jobs/build_nmt_engine.py
line 58 at r1 (raw file):
Previously, ddaspit (Damien Daspit) wrote…
I was thinking it might be useful to turn it off for testing purposes.
OK, that makes sense. Done.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #195 +/- ##
=======================================
Coverage 88.93% 88.93%
=======================================
Files 282 282
Lines 17056 17056
=======================================
Hits 15169 15169
Misses 1887 1887 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @Enkidu93)
79a9260
to
a1ce450
Compare
Change requested here.
This change is