seba3y commited on
Commit
a830941
1 Parent(s): 09fc805

Upload scoring.py

Browse files
Files changed (1) hide show
  1. scoring.py +3 -3
scoring.py CHANGED
@@ -74,11 +74,11 @@ def calculate_pronunciation_accuracy(word_pronunciation_scores, fluency_score, b
74
  fluency_score = fluency_score / 100
75
 
76
  avg_pronunciation_score = (avg_pronunciation_score - 1) / 2
77
- avg_weight = 0.8
78
- flu_weight = 0.2
79
  combined_score = avg_weight * avg_pronunciation_score + flu_weight * fluency_score
80
  # Scale to 10% - 90%
81
- final_score = 10 + combined_score * 90
82
 
83
  return final_score
84
 
 
74
  fluency_score = fluency_score / 100
75
 
76
  avg_pronunciation_score = (avg_pronunciation_score - 1) / 2
77
+ avg_weight = 0.75
78
+ flu_weight = 0.25
79
  combined_score = avg_weight * avg_pronunciation_score + flu_weight * fluency_score
80
  # Scale to 10% - 90%
81
+ final_score = 10 + combined_score * 80
82
 
83
  return final_score
84