Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,9 @@ def get_error_type(asr_word, correct_word):
|
|
21 |
if not asr_word:
|
22 |
return "Missing word"
|
23 |
if not correct_word:
|
24 |
-
return "
|
25 |
if lev_distance(asr_word, correct_word) <= 2:
|
26 |
-
return "
|
27 |
set1, set2 = set(asr_word), set(correct_word)
|
28 |
if set1 & set2:
|
29 |
return "Phonetic/Matra error"
|
|
|
21 |
if not asr_word:
|
22 |
return "Missing word"
|
23 |
if not correct_word:
|
24 |
+
return "अतिरिक्त शब्द"
|
25 |
if lev_distance(asr_word, correct_word) <= 2:
|
26 |
+
return "उच्चारण दोष (Pronunciation Errors) "
|
27 |
set1, set2 = set(asr_word), set(correct_word)
|
28 |
if set1 & set2:
|
29 |
return "Phonetic/Matra error"
|