Skip to content

Commit

Permalink
Train on all if unspecified
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Nov 9, 2023
1 parent baeba70 commit b20b4c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Serval.Client/Client.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ public partial interface ITranslationEnginesClient
/// <br/>you may flag a subset of books for pretranslation by including their [abbreviations](https://github.com/sillsdev/libpalaso/blob/master/SIL.Scripture/Canon.cs)
/// <br/>in the textIds parameter. If the engine does not support pretranslation, these fields have no effect.
/// <br/>
/// <br/>Similarly, specify the corpora and textIds to train on. If none are provided, all corpora will be used.
/// <br/>Similarly, specify the corpora and textIds to train on. If no train_on field is provided, all corpora will be used.
/// <br/>
/// <br/>The `"options"` parameter of the build config provides the ability to pass build configuration parameters as a JSON object.
/// <br/>A typical use case would be to set `"options"` to `{"max_steps":10}` in order to configure the maximum
Expand Down Expand Up @@ -2916,7 +2916,7 @@ public string BaseUrl
/// <br/>you may flag a subset of books for pretranslation by including their [abbreviations](https://github.com/sillsdev/libpalaso/blob/master/SIL.Scripture/Canon.cs)
/// <br/>in the textIds parameter. If the engine does not support pretranslation, these fields have no effect.
/// <br/>
/// <br/>Similarly, specify the corpora and textIds to train on. If none are provided, all corpora will be used.
/// <br/>Similarly, specify the corpora and textIds to train on. If no train_on field is provided, all corpora will be used.
/// <br/>
/// <br/>The `"options"` parameter of the build config provides the ability to pass build configuration parameters as a JSON object.
/// <br/>A typical use case would be to set `"options"` to `{"max_steps":10}` in order to configure the maximum
Expand Down
2 changes: 1 addition & 1 deletion src/Serval.Translation/Services/EngineService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public async Task<bool> StartBuildAsync(Build build, CancellationToken cancellat
if (trainingCorpus.TextIds is not null)
corpus.TrainOnTextIds.Add(trainingCorpus.TextIds);
}
else if (trainOn is not null && trainOn.Count == 0)
else if (trainOn is null)
{
corpus.TrainOnAll = true;
}
Expand Down

0 comments on commit b20b4c7

Please sign in to comment.