Spaces:
Runtime error
Runtime error
updating diversity calculation
Browse files
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 = (
|
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 |
|