Skip to content

Port sequence confidence changes#400

Open
Enkidu93 wants to merge 1 commit intomasterfrom
port_add_sequence_confidence
Open

Port sequence confidence changes#400
Enkidu93 wants to merge 1 commit intomasterfrom
port_add_sequence_confidence

Conversation

@Enkidu93
Copy link
Copy Markdown
Collaborator

@Enkidu93 Enkidu93 commented Apr 7, 2026

Many changes were not relevant to Machine (C#). My only question: For the TranslationEngines that create translation results in Machine, should I just provide a dummy -1.0 value for the sequence confidence or should I combine the individual confidences in some way to create the sequence confidence (e.g. geometric mean)?

Fixes #396.

Port changes from sillsdev/machine.py#279.


This change is Reviewable

@Enkidu93 Enkidu93 requested a review from ddaspit April 7, 2026 15:30
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.99%. Comparing base (cd06553) to head (c364fd4).

Files with missing lines Patch % Lines
...SIL.Machine/Translation/HybridTranslationEngine.cs 0.00% 1 Missing ⚠️
...c/SIL.Machine/Translation/TranslationExtensions.cs 0.00% 1 Missing ⚠️
src/SIL.Machine/Translation/TranslationResult.cs 66.66% 1 Missing ⚠️
...IL.Machine/Translation/TranslationResultBuilder.cs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #400      +/-   ##
==========================================
- Coverage   73.00%   72.99%   -0.01%     
==========================================
  Files         439      439              
  Lines       36672    36681       +9     
  Branches     5036     5036              
==========================================
+ Hits        26772    26777       +5     
- Misses       8785     8789       +4     
  Partials     1115     1115              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@ddaspit reviewed 5 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on Enkidu93).

Copy link
Copy Markdown
Collaborator Author

@Enkidu93 Enkidu93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ddaspit, just wanted to make sure you saw my question above. I'm assuming you're OK with the -1.0 default then?

@Enkidu93 made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on Enkidu93).

Copy link
Copy Markdown
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using the geometric mean of the word confidences would be good.

@ddaspit made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on Enkidu93).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port 'Add sequence confidence to pretranslations'

3 participants