joelniklaus commited on
Commit
34699da
·
1 Parent(s): c7a9682
Files changed (1) hide show
  1. mc4_legal.py +3 -1
mc4_legal.py CHANGED
@@ -20,6 +20,7 @@ _CITATION = """
20
 
21
  _URL = "https://huggingface.co/datasets/joelito/mc4_legal"
22
  _DATA_URL = f"{_URL}/resolve/main/data"
 
23
 
24
  _LANGUAGES = [
25
  "bg",
@@ -110,7 +111,8 @@ class MC4Legal(datasets.GeneratorBasedBuilder):
110
  yield id_, {
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
  }
 
20
 
21
  _URL = "https://huggingface.co/datasets/joelito/mc4_legal"
22
  _DATA_URL = f"{_URL}/resolve/main/data"
23
+ _DATA_URL = f"data"
24
 
25
  _LANGUAGES = [
26
  "bg",
 
111
  yield id_, {
112
  "index": example.get("index", ""),
113
  "url": example.get("url", ""),
114
+ # remove the Z at the end (time zone)
115
+ "timestamp": example.get("timestamp", "")[:-1],
116
  "matches": ast.literal_eval(example.get("matches", "")),
117
  "text": example.get("text", ""),
118
  }