Spaces:
Sleeping
Sleeping
ronaldahmed
commited on
Update ccl_win.py
Browse files- ccl_win.py +2 -1
ccl_win.py
CHANGED
@@ -126,7 +126,8 @@ class Scorer:
|
|
126 |
|
127 |
|
128 |
def score(self,predictions):
|
129 |
-
|
|
|
130 |
pred_list,len_by_sample = self.preprocess_adjacent_window(predictions)
|
131 |
|
132 |
scores = []
|
|
|
126 |
|
127 |
|
128 |
def score(self,predictions):
|
129 |
+
|
130 |
+
sent_lens = [len(x.split("\n")) for x in predictions]
|
131 |
pred_list,len_by_sample = self.preprocess_adjacent_window(predictions)
|
132 |
|
133 |
scores = []
|