Datasets:

Modalities:
Text
Libraries:
Datasets
Amardeep Kumar commited on
Commit
a5e1b51
1 Parent(s): 13b5cac

add data and ldkp3k.py

Browse files
Files changed (1) hide show
  1. ldkp3k.py +4 -4
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
- "document": data["document"],
115
- "document_tags": data["document_tags"],
116
  "extractive_keyphrases": data["extractive_keyphrases"],
117
  "abstractive_keyphrases": data["abstractive_keyphrases"],
118
- "other_metadata": data["other_metadata"]
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
  }