newline char removed from samples
Browse files- CoarseWSD-20.py +1 -1
CoarseWSD-20.py
CHANGED
@@ -105,7 +105,7 @@ class CWSD20(datasets.GeneratorBasedBuilder):
|
|
105 |
parts = exi.split("\t")
|
106 |
idx = parts[0]
|
107 |
sent = parts[1]
|
108 |
-
example["sentence"] = sent
|
109 |
example["idx"] = idx
|
110 |
example["label"] = int(lbi)
|
111 |
|
|
|
105 |
parts = exi.split("\t")
|
106 |
idx = parts[0]
|
107 |
sent = parts[1]
|
108 |
+
example["sentence"] = sent.strip()
|
109 |
example["idx"] = idx
|
110 |
example["label"] = int(lbi)
|
111 |
|