Update files from the datasets library (from 1.5.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.5.0
sofc_materials_articles.py
CHANGED
|
@@ -417,8 +417,8 @@ class SOFCMaterialsArticles(datasets.GeneratorBasedBuilder):
|
|
| 417 |
|
| 418 |
# Iterate through the links data, which is in a simple tab-delimited format
|
| 419 |
links = []
|
| 420 |
-
for
|
| 421 |
-
_, relation_label, start_span_id, end_span_id =
|
| 422 |
|
| 423 |
link_out = {
|
| 424 |
"relation_label": relation_label,
|
|
|
|
| 417 |
|
| 418 |
# Iterate through the links data, which is in a simple tab-delimited format
|
| 419 |
links = []
|
| 420 |
+
for link in links_raw:
|
| 421 |
+
_, relation_label, start_span_id, end_span_id = link.split("\t")
|
| 422 |
|
| 423 |
link_out = {
|
| 424 |
"relation_label": relation_label,
|