-
-
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.
Add cleanup service tests for word alignment Fix flaky test Fix naming Fix more names Passing statistical engine service tests - first pass Add hangfire implementation and tests Refactor alignment data structure; revert to pretranslate/word-align where appropriate Use parallel data when inferencing for word alignment Fix JSON serialization Rebase-related changes: extend executionData, commit-related issues to WA, small rebase mistakes Get rid of WordAlignmentResult
- Loading branch information
Showing
58 changed files
with
1,631 additions
and
795 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: "6.0" | ||
mongodb-version: "8.0" | ||
mongodb-replica-set: rs0 | ||
|
||
# Pull in a matching machine repo branch if it exists to use it rather than the released version of Machine. | ||
|
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
11 changes: 1 addition & 10 deletions
11
src/Machine/src/Serval.Machine.Shared/Services/ISmtModelFactory.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 |
---|---|---|
@@ -1,20 +1,11 @@ | ||
namespace Serval.Machine.Shared.Services; | ||
|
||
public interface ISmtModelFactory | ||
public interface ISmtModelFactory : IModelFactory | ||
{ | ||
IInteractiveTranslationModel Create( | ||
string engineDir, | ||
IRangeTokenizer<string, int, string> tokenizer, | ||
IDetokenizer<string, string> detokenizer, | ||
ITruecaser truecaser | ||
); | ||
ITrainer CreateTrainer( | ||
string engineDir, | ||
IRangeTokenizer<string, int, string> tokenizer, | ||
IParallelTextCorpus corpus | ||
); | ||
void InitNew(string engineDir); | ||
void Cleanup(string engineDir); | ||
Task UpdateEngineFromAsync(string engineDir, Stream source, CancellationToken cancellationToken = default); | ||
Task SaveEngineToAsync(string engineDir, Stream destination, CancellationToken cancellationToken = default); | ||
} |
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
7 changes: 1 addition & 6 deletions
7
src/Machine/src/Serval.Machine.Shared/Services/IWordAlignmentModelFactory.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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
namespace Serval.Machine.Shared.Services; | ||
|
||
public interface IWordAlignmentModelFactory | ||
public interface IWordAlignmentModelFactory : IModelFactory | ||
{ | ||
IWordAlignmentModel Create(string engineDir); | ||
ITrainer CreateTrainer(string engineDir, ITokenizer<string, int, string> tokenizer, IParallelTextCorpus corpus); | ||
void InitNew(string engineDir); | ||
void Cleanup(string engineDir); | ||
Task UpdateEngineFromAsync(string engineDir, Stream source, CancellationToken cancellationToken = default); | ||
Task SaveEngineToAsync(string engineDir, Stream destination, CancellationToken cancellationToken = default); | ||
} |
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.