Amardeep Kumar
commited on
Commit
•
a5e1b51
1
Parent(s):
13b5cac
add data and ldkp3k.py
Browse files
ldkp3k.py
CHANGED
@@ -110,10 +110,10 @@ class LDKP3k(datasets.GeneratorBasedBuilder):
|
|
110 |
for key, row in enumerate(f):
|
111 |
data = json.loads(row)
|
112 |
yield key, {
|
113 |
-
"id": data['paper_id']
|
114 |
-
"
|
115 |
-
"
|
116 |
"extractive_keyphrases": data["extractive_keyphrases"],
|
117 |
"abstractive_keyphrases": data["abstractive_keyphrases"],
|
118 |
-
"
|
119 |
}
|
|
|
110 |
for key, row in enumerate(f):
|
111 |
data = json.loads(row)
|
112 |
yield key, {
|
113 |
+
"id": data['paper_id'],
|
114 |
+
"sections": data["sections"],
|
115 |
+
"sec_text": data["sec_text"],
|
116 |
"extractive_keyphrases": data["extractive_keyphrases"],
|
117 |
"abstractive_keyphrases": data["abstractive_keyphrases"],
|
118 |
+
"sec_bio_tags": data["sec_bio_tags"]
|
119 |
}
|