adding dataset loading script
Browse files- SciDuet.py +1 -1
SciDuet.py
CHANGED
@@ -145,7 +145,7 @@ class SciDuet(datasets.GeneratorBasedBuilder):
|
|
145 |
paper_content_texts = [text["string"] for text in item["paper"]["text"]]
|
146 |
paper_header_numbers = [header["n"] for header in item["paper"]["headers"]]
|
147 |
paper_header_contents = [header["section"] for header in item["paper"]["headers"]]
|
148 |
-
for j in
|
149 |
id_ = gem_id + "#" + "paper-" + paper_id + "#" + "slide-" + str(j)
|
150 |
slide_title = item["slides"][j]["title"]
|
151 |
slide_content_text = '\n'.join(item["slides"][j]["text"])
|
|
|
145 |
paper_content_texts = [text["string"] for text in item["paper"]["text"]]
|
146 |
paper_header_numbers = [header["n"] for header in item["paper"]["headers"]]
|
147 |
paper_header_contents = [header["section"] for header in item["paper"]["headers"]]
|
148 |
+
for j in item["slides"]:
|
149 |
id_ = gem_id + "#" + "paper-" + paper_id + "#" + "slide-" + str(j)
|
150 |
slide_title = item["slides"][j]["title"]
|
151 |
slide_content_text = '\n'.join(item["slides"][j]["text"])
|