Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
English
Size:
1K - 10K
ArXiv:
License:
Update etpc.py
Browse files
etpc.py
CHANGED
|
@@ -163,10 +163,6 @@ class ETPC(datasets.GeneratorBasedBuilder):
|
|
| 163 |
sentence2_segment_location,
|
| 164 |
paraphrase_type_ids,
|
| 165 |
):
|
| 166 |
-
print(paraphrase_type_id)
|
| 167 |
-
print(sentence1_segment_location_example.split(","))
|
| 168 |
-
print(sentence2_segment_location_example.split(","))
|
| 169 |
-
|
| 170 |
for (
|
| 171 |
segment_location
|
| 172 |
) in sentence1_segment_location_example.split(","):
|
|
@@ -179,6 +175,7 @@ class ETPC(datasets.GeneratorBasedBuilder):
|
|
| 179 |
sentence2_segment_location_full[
|
| 180 |
int(segment_location)
|
| 181 |
] = int(paraphrase_type_id)
|
|
|
|
| 182 |
yield idx, {
|
| 183 |
"idx": row.find(".//pair_id").text + "_" + str(idx),
|
| 184 |
"sentence1": row.find(".//sent1_raw").text,
|
|
|
|
| 163 |
sentence2_segment_location,
|
| 164 |
paraphrase_type_ids,
|
| 165 |
):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
for (
|
| 167 |
segment_location
|
| 168 |
) in sentence1_segment_location_example.split(","):
|
|
|
|
| 175 |
sentence2_segment_location_full[
|
| 176 |
int(segment_location)
|
| 177 |
] = int(paraphrase_type_id)
|
| 178 |
+
|
| 179 |
yield idx, {
|
| 180 |
"idx": row.find(".//pair_id").text + "_" + str(idx),
|
| 181 |
"sentence1": row.find(".//sent1_raw").text,
|