mskrt commited on
Commit
7f5e337
·
verified ·
1 Parent(s): 8a2c4c5

Upload PAIR.py

Browse files
Files changed (1) hide show
  1. PAIR.py +2 -3
PAIR.py CHANGED
@@ -14,7 +14,6 @@
14
 
15
 
16
  import json
17
- from ast import literal_eval
18
 
19
  import datasets
20
 
@@ -115,12 +114,12 @@ class PAIRDataset(datasets.GeneratorBasedBuilder):
115
  if elem["content"] != [None]:
116
  content = elem["content"][0]
117
  print(content, type(content))
118
- print(literal_eval(content), "done")
119
  yield counter, {
120
  "annotation_type": annotation_type,
121
  "sequence": elem["seq"],
122
  "pid": elem["pid"],
123
- "annotation": literal_eval(elem["content"][0]),
124
  }
125
  counter += 1
126
 
 
14
 
15
 
16
  import json
 
17
 
18
  import datasets
19
 
 
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,
120
  "sequence": elem["seq"],
121
  "pid": elem["pid"],
122
+ "annotation": content,
123
  }
124
  counter += 1
125