Skip to content

Commit

Permalink
fix(cli): fix dictionary aot generation (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabynevada authored Nov 16, 2023
1 parent 71ce64f commit 4c766b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Biomatch.CLI/Commands/MatchingCommand.Dictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,23 @@ await File.WriteAllTextAsync(
Path.Combine(outputOptionValue.FullName, "FirstNamesDictionary.json"),
JsonSerializer.Serialize(
firstNameFrequencyDictionary,
WordFrequencySerializationContext.Default.WordFrequency
WordFrequencySerializationContext.Default.ListWordFrequency
)
);

await File.WriteAllTextAsync(
Path.Combine(outputOptionValue.FullName, "MiddleNamesDictionary.json"),
JsonSerializer.Serialize(
middleNameFrequencyDictionary,
WordFrequencySerializationContext.Default.WordFrequency
WordFrequencySerializationContext.Default.ListWordFrequency
)
);

await File.WriteAllTextAsync(
Path.Combine(outputOptionValue.FullName, "LastNamesDictionary.json"),
JsonSerializer.Serialize(
lastNameFrequencyDictionary,
WordFrequencySerializationContext.Default.WordFrequency
WordFrequencySerializationContext.Default.ListWordFrequency
)
);
},
Expand Down

0 comments on commit 4c766b4

Please sign in to comment.