-
-
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.
Serval-side mixed source support (#497)
Mixed source support
- Loading branch information
Showing
64 changed files
with
6,257 additions
and
1,385 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
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.