diff --git a/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs b/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs index 00f912fd..4f6b83a6 100644 --- a/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs +++ b/src/Machine/src/Serval.Machine.Shared/Services/PreprocessBuildJob.cs @@ -262,7 +262,7 @@ CancellationToken cancellationToken ) ) .Select(sc => - sc.Item2.FilterTextRows(row => + sc.Item2.Where(row => row.Ref is not ScriptureRef sr || ( (sc.Subcorpus.TrainOnChapters ?? new()).TryGetValue(sr.Book, out HashSet? chapters) @@ -288,7 +288,7 @@ row.Ref is not ScriptureRef sr ) ) .Select(sc => - sc.Item2.FilterTextRows(row => + sc.Item2.Where(row => row.Ref is not ScriptureRef sr || ( (sc.Subcorpus.PretranslateChapters ?? new()).TryGetValue( @@ -325,7 +325,7 @@ out HashSet? trainChapters ) ) .Select(tc => - tc.Item2.FilterTextRows(row => + tc.Item2.Where(row => row.Ref is not ScriptureRef sr || ( (tc.Subcorpus.TrainOnChapters ?? new()).TryGetValue(sr.Book, out HashSet? chapters)