RobPruzan commited on
Commit
c8babd6
·
1 Parent(s): 7cd54fa

updating diversity calculation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def calculate_diversity(text):
100
  t_sim = len(value)
101
  t_rep = (len(value)) - (len(set(value)))
102
 
103
- score = ((t_sim - t_rep) / t_sim) ** 2
104
 
105
  scores[key] = score
106
 
 
100
  t_sim = len(value)
101
  t_rep = (len(value)) - (len(set(value)))
102
 
103
+ score = (t_sim - t_rep) / t_sim
104
 
105
  scores[key] = score
106