-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working machine-side logic implementation; (one outstanding test that…
… should be written 'TODO') Note: With this new implementation, text marked for pretranslation will be pretranslated even if there's target text for the same verses. I believe this is not an issue (and maybe the previous implementation was a mistake) given the USFM source text preference options.
- Loading branch information
Showing
25 changed files
with
1,416 additions
and
1,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/Machine/src/Serval.Machine.Shared/Models/MonolingualCorpus.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Serval.Machine.Shared.Models; | ||
|
||
public record MonolingualCorpus | ||
{ | ||
public required string Id { get; set; } | ||
public required string Language { get; set; } | ||
public required IReadOnlyList<CorpusFile> Files { get; set; } | ||
public HashSet<string>? TrainOnTextIds { get; set; } | ||
public Dictionary<string, HashSet<int>>? TrainOnChapters { get; set; } | ||
public HashSet<string>? PretranslateTextIds { get; set; } | ||
public Dictionary<string, HashSet<int>>? PretranslateChapters { get; set; } | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Machine/src/Serval.Machine.Shared/Models/ParallelCorpus.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Serval.Machine.Shared.Models; | ||
|
||
public record ParallelCorpus | ||
{ | ||
public required string Id { get; set; } | ||
public IReadOnlyList<MonolingualCorpus> SourceCorpora { get; set; } = new List<MonolingualCorpus>(); | ||
public IReadOnlyList<MonolingualCorpus> TargetCorpora { get; set; } = new List<MonolingualCorpus>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.