Skip to content

Commit

Permalink
Small bug in NParallelTextCorpus
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Jan 14, 2025
1 parent 6f0b6c5 commit fa1d6c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SIL.Machine/Corpora/NParallelTextCorpus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ NParallelTextRow row in CreateMinRefRows(
}
foreach (int i in minRefIndexes)
{
if (completed[i])
continue;
sameRefRows[i].Add(enumerators[i].Current);
bool isCompleted = !enumerators[i].MoveNext();
completed[i] = isCompleted;
Expand Down Expand Up @@ -241,6 +243,8 @@ NParallelTextRow row in CreateRows(

for (int i = 0; i < rangeInfo.Rows.Count; i++)
{
if (completed[i])
continue;
sameRefRows[i].Add(currentRows[i]);
bool isCompleted = !enumerators[i].MoveNext();
completed[i] = isCompleted;
Expand Down

0 comments on commit fa1d6c7

Please sign in to comment.