From 43824107e13c1c0706ba4c862855e853c021b8c4 Mon Sep 17 00:00:00 2001 From: "Eli C. Lowry" <83078660+Enkidu93@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:27:27 -0400 Subject: [PATCH] Prestranslation versification mismatch (#471) * Use target refs --- .../src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs b/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs index 1a8da401..d15e5a69 100644 --- a/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs +++ b/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs @@ -400,7 +400,7 @@ private static IEnumerable AlignPretranslateCorpus(Corpus corpus, ITextCorp { if (!row.IsTargetRangeStart && row.IsTargetInRange) { - refs.AddRange(row.Refs); + refs.AddRange(row.TargetRefs); if (row.SourceText.Length > 0) { if (srcSegBuffer.Length > 0) @@ -422,7 +422,7 @@ private static IEnumerable AlignPretranslateCorpus(Corpus corpus, ITextCorp } textId = row.TextId; - refs.AddRange(row.Refs); + refs.AddRange(row.TargetRefs); srcSegBuffer.Append(row.SourceText); trgSegBuffer.Append(row.TargetText); rowCount++;