Skip to content

Commit

Permalink
Switch to tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Dec 3, 2024
1 parent 7b9c4a8 commit e184d79
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ public async Task Preprocess(
.ChooseRandom(Seed)
.AlignRows(targetTermCorpora.ChooseFirst());
foreach (
ParallelTextRow row in parallelKeyTermsCorpus.DistinctBy(row => row.SourceText + row.TargetText)
ParallelTextRow row in parallelKeyTermsCorpus.DistinctBy(row =>
(row.SourceText, row.TargetText)
)
)
{
await train(new Row(row.TextId, row.Refs, row.SourceText, row.TargetText, 1));
Expand Down

0 comments on commit e184d79

Please sign in to comment.