Spaces:
Running
Running
Update relative_tester.py
Browse files- relative_tester.py +6 -5
relative_tester.py
CHANGED
|
@@ -32,11 +32,12 @@ class RelativeTester:
|
|
| 32 |
# print("DEBUG: tooshort")
|
| 33 |
return "Too short to test! Please input at least 2 sentences with more than 5 words."
|
| 34 |
# Cutoff the features
|
| 35 |
-
min_len = min(
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
)
|
|
|
|
| 40 |
# Calculate MMD
|
| 41 |
h_u_list = []
|
| 42 |
p_value_list = []
|
|
|
|
| 32 |
# print("DEBUG: tooshort")
|
| 33 |
return "Too short to test! Please input at least 2 sentences with more than 5 words."
|
| 34 |
# Cutoff the features
|
| 35 |
+
# min_len = min(
|
| 36 |
+
# len(feature_for_sents),
|
| 37 |
+
# len(self.feature_hwt_ref),
|
| 38 |
+
# len(self.feature_mgt_ref),
|
| 39 |
+
# )
|
| 40 |
+
min_len = 1
|
| 41 |
# Calculate MMD
|
| 42 |
h_u_list = []
|
| 43 |
p_value_list = []
|