Arie Cattan commited on
Commit
151dd98
1 Parent(s): d66638a
Files changed (1) hide show
  1. scico.py +18 -18
scico.py CHANGED
@@ -43,7 +43,7 @@ class Scico(datasets.GeneratorBasedBuilder):
43
  "flatten_tokens": datasets.features.Sequence(datasets.features.Value("string")),
44
  "flatten_mentions": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("int32"), length=3)),
45
  "tokens": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("string"))),
46
- "doc_ids": datasets.features.Sequence(datasets.features.Value("int32"))
47
  # "metadata": datasets.features.Sequence(
48
  # {
49
  # "title": datasets.features.Value("string"),
@@ -54,14 +54,14 @@ class Scico(datasets.GeneratorBasedBuilder):
54
  # "url": datasets.features.Value("string")
55
  # }
56
  # )
57
- # "sentences": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("int32")))),
58
- # "mentions": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("int32"), length=4)),
59
- # "relations": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("int32"), length=2)),
60
- # "id": datasets.Value("int32"),
61
- # "source": datasets.Value("string"),
62
- # "hard_10": datasets.features.Value("bool"),
63
- # "hard_20": datasets.features.Value("bool"),
64
- # "curated": datasets.features.Value("bool")
65
  }
66
  ),
67
  supervised_keys=None,
@@ -95,14 +95,14 @@ class Scico(datasets.GeneratorBasedBuilder):
95
  "flatten_mentions": topic["flatten_mentions"],
96
  "tokens": topic["tokens"],
97
  "doc_ids": topic["doc_ids"],
98
- "doc_ids": topic["doc_ids"]
99
  # "metadata": topic["metadata"]
100
- # "sentences": topic["sentences"],
101
- # "mentions": topic["mentions"],
102
- # "relations": topic["relations"],
103
- # "id": topic["id"],
104
- # "source": topic["source"],
105
- # "hard_10": topic["hard_10"],
106
- # "hard_20": topic["hard_20"],
107
- # "curated": topic["curated"]
108
  }
 
43
  "flatten_tokens": datasets.features.Sequence(datasets.features.Value("string")),
44
  "flatten_mentions": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("int32"), length=3)),
45
  "tokens": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("string"))),
46
+ "doc_ids": datasets.features.Sequence(datasets.features.Value("int32")),
47
  # "metadata": datasets.features.Sequence(
48
  # {
49
  # "title": datasets.features.Value("string"),
 
54
  # "url": datasets.features.Value("string")
55
  # }
56
  # )
57
+ "sentences": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("int32")))),
58
+ "mentions": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("int32"), length=4)),
59
+ "relations": datasets.features.Sequence(datasets.features.Sequence(datasets.features.Value("int32"), length=2)),
60
+ "id": datasets.Value("int32"),
61
+ "source": datasets.Value("string"),
62
+ "hard_10": datasets.features.Value("bool"),
63
+ "hard_20": datasets.features.Value("bool"),
64
+ "curated": datasets.features.Value("bool")
65
  }
66
  ),
67
  supervised_keys=None,
 
95
  "flatten_mentions": topic["flatten_mentions"],
96
  "tokens": topic["tokens"],
97
  "doc_ids": topic["doc_ids"],
98
+ "doc_ids": topic["doc_ids"],
99
  # "metadata": topic["metadata"]
100
+ "sentences": topic["sentences"],
101
+ "mentions": topic["mentions"],
102
+ "relations": topic["relations"],
103
+ "id": topic["id"],
104
+ "source": topic["source"],
105
+ "hard_10": topic["hard_10"],
106
+ "hard_20": topic["hard_20"],
107
+ "curated": topic["curated"]
108
  }