Skip to content

Commit

Permalink
Peter's fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Oct 29, 2024
1 parent 2c0dd11 commit f620097
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ pretranslateFilter is not null
&& referenceFileLocation is not null
)
{
GetChapters(referenceFileLocation, pretranslateFilter.ScriptureRange)
pretranslateChapters = GetChapters(referenceFileLocation, pretranslateFilter.ScriptureRange)
.Select(
(kvp) =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,17 @@ await env.Service.StartBuildAsync(
new() { CorpusRef = "parallel-corpus1-target1", ScriptureRange = "MAT 1;MRK" }
}
}
],
Pretranslate =
[
new PretranslateCorpus
{
ParallelCorpusRef = "parallel-corpus1",
SourceFilters = new List<ParallelCorpusFilter>()
{
new() { CorpusRef = "parallel-corpus1-source1", ScriptureRange = "MAT 2" }
}
}
]
}
);
Expand Down Expand Up @@ -1340,6 +1351,13 @@ await env.Service.StartBuildAsync(
new ScriptureChapters { Chapters = { } }
}
},
PretranslateChapters =
{
{
"MAT",
new ScriptureChapters { Chapters = { 2 } }
}
},
Files =
{
new V1.CorpusFile
Expand All @@ -1349,7 +1367,7 @@ await env.Service.StartBuildAsync(
TextId = "file1.zip"
}
},
PretranslateAll = true,
PretranslateAll = false,
TrainOnAll = false
},
new()
Expand All @@ -1365,7 +1383,7 @@ await env.Service.StartBuildAsync(
TextId = "file3.zip"
}
},
PretranslateAll = true,
PretranslateAll = false,
TrainOnAll = false
}
}
Expand Down

0 comments on commit f620097

Please sign in to comment.