We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13361d0 + ec1494c commit 7edb07eCopy full SHA for 7edb07e
SentEval/senteval/sts.py
@@ -39,8 +39,8 @@ def loadFile(self, fpath):
39
not_empty_idx = raw_scores != ''
40
41
gs_scores = [float(x) for x in raw_scores[not_empty_idx]]
42
- sent1 = np.array([s.split() for s in sent1])[not_empty_idx]
43
- sent2 = np.array([s.split() for s in sent2])[not_empty_idx]
+ sent1 = np.array([s.split() for s in sent1], dtype=object)[not_empty_idx]
+ sent2 = np.array([s.split() for s in sent2], dtype=object)[not_empty_idx]
44
# sort data by length to minimize padding in batcher
45
sorted_data = sorted(zip(sent1, sent2, gs_scores),
46
key=lambda z: (len(z[0]), len(z[1]), z[2]))
0 commit comments