joelniklaus commited on
Commit
c7a9682
1 Parent(s): 72ffc94
Files changed (1) hide show
  1. mc4_legal.py +2 -2
mc4_legal.py CHANGED
@@ -1,5 +1,5 @@
1
  """MC4_Legal"""
2
-
3
  import json
4
 
5
  import datasets
@@ -111,7 +111,7 @@ class MC4Legal(datasets.GeneratorBasedBuilder):
111
  "index": example.get("index", ""),
112
  "url": example.get("url", ""),
113
  "timestamp": example.get("timestamp", ""),
114
- "matches": example.get("matches", ""),
115
  "text": example.get("text", ""),
116
  }
117
  id_ += 1
 
1
  """MC4_Legal"""
2
+ import ast
3
  import json
4
 
5
  import datasets
 
111
  "index": example.get("index", ""),
112
  "url": example.get("url", ""),
113
  "timestamp": example.get("timestamp", ""),
114
+ "matches": ast.literal_eval(example.get("matches", "")),
115
  "text": example.get("text", ""),
116
  }
117
  id_ += 1