NLPV commited on
Commit
ea23e90
·
verified ·
1 Parent(s): 092c4c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -33,6 +33,7 @@ def compare_hindi_sentences(expected, transcribed):
33
  expected_words = expected.strip().split()
34
  expected_clean = expected.translate(str.maketrans('', '', string.punctuation))
35
  expected_words = expected_clean.strip().split()
 
36
  transcribed_words = transcribed.strip().split()
37
  matcher = difflib.SequenceMatcher(None, transcribed_words, expected_words)
38
  errors = []
 
33
  expected_words = expected.strip().split()
34
  expected_clean = expected.translate(str.maketrans('', '', string.punctuation))
35
  expected_words = expected_clean.strip().split()
36
+ transcribed = transcribed.translate(str.maketrans('', '', string.punctuation))
37
  transcribed_words = transcribed.strip().split()
38
  matcher = difflib.SequenceMatcher(None, transcribed_words, expected_words)
39
  errors = []