-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
296 additions
and
278 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 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public class ClearMLMetricsEvent | ||
public record ClearMLMetricsEvent | ||
{ | ||
public string Metric { get; set; } = default!; | ||
public string Variant { get; set; } = default!; | ||
public double Value { get; set; } | ||
public double MinValue { get; set; } | ||
public int MinValueIteration { get; set; } | ||
public double MaxValue { get; set; } | ||
public int MaxValueIteration { get; set; } | ||
public required string Metric { get; init; } | ||
public required string Variant { get; init; } | ||
public required double Value { get; init; } | ||
public required double MinValue { get; init; } | ||
public required int MinValueIteration { get; init; } | ||
public required double MaxValue { get; init; } | ||
public required int MaxValueIteration { get; init; } | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public class ClearMLProject | ||
public record ClearMLProject | ||
{ | ||
public string Id { get; set; } = default!; | ||
public required string Id { get; init; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public class Corpus | ||
public record Corpus | ||
{ | ||
public string Id { get; set; } = default!; | ||
public string SourceLanguage { get; set; } = default!; | ||
public string TargetLanguage { get; set; } = default!; | ||
public bool TrainOnAll { get; set; } | ||
public bool PretranslateAll { get; set; } | ||
public Dictionary<string, HashSet<int>>? TrainOnChapters { get; set; } | ||
public Dictionary<string, HashSet<int>>? PretranslateChapters { get; set; } | ||
public HashSet<string> TrainOnTextIds { get; set; } = default!; | ||
public HashSet<string> PretranslateTextIds { get; set; } = default!; | ||
public List<CorpusFile> SourceFiles { get; set; } = default!; | ||
public List<CorpusFile> TargetFiles { get; set; } = default!; | ||
public required string Id { get; init; } | ||
public required string SourceLanguage { get; init; } | ||
public required string TargetLanguage { get; init; } | ||
public required bool TrainOnAll { get; init; } | ||
public required bool PretranslateAll { get; init; } | ||
public IReadOnlyDictionary<string, IReadOnlySet<int>>? TrainOnChapters { get; init; } | ||
public IReadOnlyDictionary<string, IReadOnlySet<int>>? PretranslateChapters { get; init; } | ||
public required IReadOnlySet<string> TrainOnTextIds { get; init; } | ||
public required IReadOnlySet<string> PretranslateTextIds { get; init; } | ||
public required IReadOnlyList<CorpusFile> SourceFiles { get; init; } | ||
public required IReadOnlyList<CorpusFile> TargetFiles { get; init; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public class Lock | ||
public record Lock | ||
{ | ||
public string Id { get; set; } = default!; | ||
public DateTime? ExpiresAt { get; set; } | ||
public string HostId { get; set; } = default!; | ||
public required string Id { get; init; } | ||
public DateTime? ExpiresAt { get; init; } | ||
public required string HostId { get; init; } | ||
} |
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
using System; | ||
|
||
namespace SIL.Machine.AspNetCore.Models | ||
namespace SIL.Machine.AspNetCore.Models | ||
{ | ||
public class ModelDownloadUrl | ||
public record ModelDownloadUrl | ||
{ | ||
public string Url { get; set; } = default!; | ||
public int ModelRevision { get; set; } = default!; | ||
public DateTime ExipiresAt { get; set; } = default!; | ||
public required string Url { get; init; } | ||
public required int ModelRevision { get; init; } | ||
public required DateTime ExpiresAt { get; init; } | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public class Pretranslation | ||
public record Pretranslation | ||
{ | ||
public string CorpusId { get; set; } = default!; | ||
public string TextId { get; set; } = default!; | ||
public List<string> Refs { get; set; } = default!; | ||
public string Translation { get; set; } = default!; | ||
public required string CorpusId { get; init; } | ||
public required string TextId { get; init; } | ||
public required IReadOnlyList<string> Refs { get; init; } | ||
public required string Translation { get; init; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public class TrainSegmentPair : IEntity | ||
public record TrainSegmentPair : IEntity | ||
{ | ||
public string Id { get; set; } = default!; | ||
public string Id { get; set; } = ""; | ||
public int Revision { get; set; } = 1; | ||
public string TranslationEngineRef { get; set; } = default!; | ||
public string Source { get; set; } = default!; | ||
public string Target { get; set; } = default!; | ||
public bool SentenceStart { get; set; } | ||
public required string TranslationEngineRef { get; init; } | ||
public required string Source { get; init; } | ||
public required string Target { get; init; } | ||
public required bool SentenceStart { get; init; } | ||
} |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
namespace SIL.Machine.AspNetCore.Models; | ||
|
||
public class TranslationEngine : IEntity | ||
public record TranslationEngine : IEntity | ||
{ | ||
public string Id { get; set; } = default!; | ||
public string Id { get; set; } = ""; | ||
public int Revision { get; set; } = 1; | ||
public string EngineId { get; set; } = default!; | ||
public string SourceLanguage { get; set; } = default!; | ||
public string TargetLanguage { get; set; } = default!; | ||
public bool IsModelPersisted { get; set; } | ||
public int BuildRevision { get; set; } | ||
public Build? CurrentBuild { get; set; } | ||
public required string EngineId { get; init; } | ||
public required string SourceLanguage { get; init; } | ||
public required string TargetLanguage { get; init; } | ||
public required bool IsModelPersisted { get; init; } | ||
public int BuildRevision { get; init; } | ||
public Build? CurrentBuild { get; init; } | ||
} |
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
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.