Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
coreference-resolution
Languages:
English
Size:
< 1K
License:
Arie Cattan
commited on
Commit
•
18e2798
1
Parent(s):
e07d750
add features
Browse files
scico.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
"""SciCo"""
|
2 |
|
3 |
import os
|
|
|
4 |
import jsonlines
|
5 |
import datasets
|
6 |
|
@@ -24,13 +25,13 @@ _DESCRIPTION = """\
|
|
24 |
_DATA_URL = "https://nlp.biu.ac.il/~ariecattan/scico/data.tar"
|
25 |
|
26 |
class Scico(datasets.GeneratorBasedBuilder):
|
27 |
-
BUILDER_CONFIGS = [
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
]
|
34 |
|
35 |
def _info(self):
|
36 |
return datasets.DatasetInfo(
|
@@ -38,14 +39,24 @@ class Scico(datasets.GeneratorBasedBuilder):
|
|
38 |
homepage="https://scico.apps.allenai.org/",
|
39 |
features=datasets.Features(
|
40 |
{
|
41 |
-
"flatten_tokens": datasets.features.Sequence,
|
42 |
-
"flatten_mentions": datasets.features.Sequence,
|
43 |
-
"tokens": datasets.features.Sequence,
|
44 |
-
"doc_ids": datasets.features.Sequence,
|
45 |
-
"metadata": datasets.features.Sequence
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
"id": datasets.Value("int32"),
|
50 |
"source": datasets.Value("string")
|
51 |
}
|
|
|
1 |
"""SciCo"""
|
2 |
|
3 |
import os
|
4 |
+
from datasets.arrow_dataset import DatasetTransformationNotAllowedError
|
5 |
import jsonlines
|
6 |
import datasets
|
7 |
|
|
|
25 |
_DATA_URL = "https://nlp.biu.ac.il/~ariecattan/scico/data.tar"
|
26 |
|
27 |
class Scico(datasets.GeneratorBasedBuilder):
|
28 |
+
# BUILDER_CONFIGS = [
|
29 |
+
# datasets.BuilderConfig(
|
30 |
+
# name="plain_text",
|
31 |
+
# version=datasets.Version("1.0.0", ""),
|
32 |
+
# description="SciCo",
|
33 |
+
# )
|
34 |
+
# ]
|
35 |
|
36 |
def _info(self):
|
37 |
return datasets.DatasetInfo(
|
|
|
39 |
homepage="https://scico.apps.allenai.org/",
|
40 |
features=datasets.Features(
|
41 |
{
|
42 |
+
"flatten_tokens": datasets.features.Sequence(datasets.features.Value("string")),
|
43 |
+
"flatten_mentions": datasets.features.Sequence(datasets.features.Value("int32"), length=3),
|
44 |
+
"tokens": datasets.features.Sequence(datasets.features.Value("string")),
|
45 |
+
"doc_ids": datasets.features.Sequence(datasets.features.Value("int32")),
|
46 |
+
"metadata": datasets.features.Sequence(
|
47 |
+
{
|
48 |
+
"title": datasets.feature.Value("string"),
|
49 |
+
"_merge": datasets.feature.Value("string"),
|
50 |
+
"paper_sha": datasets.feature.Value("string"),
|
51 |
+
"fields_of_study": datasets.features.Sequences(datasets.feature.Value("string")),
|
52 |
+
"Year": datasets.feature.Value("string"),
|
53 |
+
"BookTitle": datasets.feature.Value("string"),
|
54 |
+
"url": datasets.feature.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 |
}
|