Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
coreference-resolution
Languages:
English
Size:
< 1K
License:
Arie Cattan
commited on
Commit
•
f08dbf3
1
Parent(s):
151dd98
fix
Browse files
scico.py
CHANGED
@@ -44,16 +44,16 @@ class Scico(datasets.GeneratorBasedBuilder):
|
|
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 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
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)),
|
@@ -96,7 +96,7 @@ class Scico(datasets.GeneratorBasedBuilder):
|
|
96 |
"tokens": topic["tokens"],
|
97 |
"doc_ids": topic["doc_ids"],
|
98 |
"doc_ids": topic["doc_ids"],
|
99 |
-
|
100 |
"sentences": topic["sentences"],
|
101 |
"mentions": topic["mentions"],
|
102 |
"relations": topic["relations"],
|
|
|
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"),
|
50 |
+
"paper_sha": datasets.features.Value("string"),
|
51 |
+
"fields_of_study": datasets.features.Value("string"),
|
52 |
+
"Year": datasets.features.Value("string"),
|
53 |
+
"BookTitle": 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)),
|
|
|
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"],
|