Upload PAIR.py
Browse files
PAIR.py
CHANGED
|
@@ -63,7 +63,7 @@ class PAIRDataset(datasets.GeneratorBasedBuilder):
|
|
| 63 |
"annotation_type": datasets.Value("string"),
|
| 64 |
"sequence": datasets.Value("string"),
|
| 65 |
"pid": datasets.Value("string"),
|
| 66 |
-
"annotation": datasets.Value("
|
| 67 |
}
|
| 68 |
),
|
| 69 |
supervised_keys=None,
|
|
@@ -113,7 +113,6 @@ class PAIRDataset(datasets.GeneratorBasedBuilder):
|
|
| 113 |
# example = parse_line_to_example(line)
|
| 114 |
if elem["content"] != [None]:
|
| 115 |
content = elem["content"][0]
|
| 116 |
-
print(content, type(content))
|
| 117 |
# print(literal_eval(content), "done")
|
| 118 |
yield counter, {
|
| 119 |
"annotation_type": annotation_type,
|
|
|
|
| 63 |
"annotation_type": datasets.Value("string"),
|
| 64 |
"sequence": datasets.Value("string"),
|
| 65 |
"pid": datasets.Value("string"),
|
| 66 |
+
"annotation": datasets.Value("object"),
|
| 67 |
}
|
| 68 |
),
|
| 69 |
supervised_keys=None,
|
|
|
|
| 113 |
# example = parse_line_to_example(line)
|
| 114 |
if elem["content"] != [None]:
|
| 115 |
content = elem["content"][0]
|
|
|
|
| 116 |
# print(literal_eval(content), "done")
|
| 117 |
yield counter, {
|
| 118 |
"annotation_type": annotation_type,
|