Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Nov 30, 2024
1 parent e5c9de2 commit fbb02e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions binding/dotnet/CheetahTest/MainTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private static double GetErrorRate(string transcript, string referenceTranscript
string[] referenceTranscriptWords = referenceTranscript.Split(' ');

int editDistance = LevenshteinDistance(transcriptWords, referenceTranscriptWords);
return (double) editDistance / referenceTranscriptWords.Length;
return (double)editDistance / referenceTranscriptWords.Length;
}

private static string GetModelPath(string language)
Expand Down Expand Up @@ -199,7 +199,8 @@ public void TestProcess(
transcript += finalTranscriptObj.Transcript;

string normalizedTranscript = referenceTranscript;
foreach (string punctuation in punctuations) {
foreach (string punctuation in punctuations)
{
normalizedTranscript = normalizedTranscript.Replace(punctuation, "");
}

Expand Down
1 change: 1 addition & 0 deletions resources/.lint/spell-check/dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ LPWSTR
Makefiles
micdemo
NETCOREAPP
Newtonsoft
NumChans
Okhttp
pathbuf
Expand Down

0 comments on commit fbb02e2

Please sign in to comment.