Repository navigation
Port additional changes made to the transductive alignment model - #426
pmachapman wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #426 +/- ##
==========================================
+ Coverage 92.64% 92.79% +0.14%
==========================================
Files 424 424
Lines 27014 27074 +60
==========================================
+ Hits 25028 25123 +95
+ Misses 1986 1951 -35 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
|
||
| @pytest.mark.parametrize("symmetrized", [False, True]) | ||
| @pytest.mark.parametrize("index", [-1, 8]) | ||
| def test_get_training_alignment_out_of_range(symmetrized: bool, index: int) -> None: |
There was a problem hiding this comment.
FYI: F1. This test never closes its model. The native thot models are left for the garbage collector to clean up, against the AGENTS.md rule to close models according to their contracts. test_word_align_corpus_falls_back_to_inference_when_alignments_not_retained (tests/translation/test_corpus_ops.py:86) has the same gap. Wrapping the body in with model: fixes it, the way test_emit_training_alignments_symmetrized_with_empty_segments already does. The older tests in this file have the same gap, so this is optional.
Public API changes, all matching C#:
Upstream in sillsdev/machine, not this PR:
Findings: F1 new. Reviewed at 5dfb75b |
Fixes #372.
The Python binding for
num_training_alignmentsis currently broken (see sillsdev/thot#20), so I get the property using introspection.This change is