gabrielaltay
commited on
Commit
•
9f847f1
1
Parent(s):
095ceb0
Update tmp-scitail.py
Browse files- tmp-scitail.py +1 -21
tmp-scitail.py
CHANGED
@@ -23,32 +23,12 @@ to create the SciTail dataset. The dataset contains 27,026 examples with 10,101
|
|
23 |
entails label and 16,925 examples with neutral label.
|
24 |
"""
|
25 |
from dataclasses import dataclass
|
26 |
-
from enum import Enum
|
27 |
import os
|
28 |
|
29 |
import datasets
|
30 |
import pandas as pd
|
31 |
|
32 |
|
33 |
-
class Tasks(Enum):
|
34 |
-
NAMED_ENTITY_RECOGNITION = "NER"
|
35 |
-
NAMED_ENTITY_DISAMBIGUATION = "NED"
|
36 |
-
EVENT_EXTRACTION = "EE"
|
37 |
-
RELATION_EXTRACTION = "RE"
|
38 |
-
COREFERENCE_RESOLUTION = "COREF"
|
39 |
-
|
40 |
-
QUESTION_ANSWERING = "QA"
|
41 |
-
|
42 |
-
TEXTUAL_ENTAILMENT = "TE"
|
43 |
-
|
44 |
-
SEMANTIC_SIMILARITY = "STS"
|
45 |
-
|
46 |
-
PARAPHRASING = "PARA"
|
47 |
-
TRANSLATION = "TRANSL"
|
48 |
-
SUMMARIZATION = "SUM"
|
49 |
-
|
50 |
-
TEXT_CLASSIFICATION = "TXTCLASS"
|
51 |
-
|
52 |
@dataclass
|
53 |
class BigBioConfig(datasets.BuilderConfig):
|
54 |
"""BuilderConfig for BigBio."""
|
@@ -92,7 +72,7 @@ _URLS = {
|
|
92 |
_DATASETNAME: "https://ai2-public-datasets.s3.amazonaws.com/scitail/SciTailV1.1.zip",
|
93 |
}
|
94 |
|
95 |
-
_SUPPORTED_TASKS = [
|
96 |
|
97 |
_SOURCE_VERSION = "1.1.0"
|
98 |
|
|
|
23 |
entails label and 16,925 examples with neutral label.
|
24 |
"""
|
25 |
from dataclasses import dataclass
|
|
|
26 |
import os
|
27 |
|
28 |
import datasets
|
29 |
import pandas as pd
|
30 |
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
@dataclass
|
33 |
class BigBioConfig(datasets.BuilderConfig):
|
34 |
"""BuilderConfig for BigBio."""
|
|
|
72 |
_DATASETNAME: "https://ai2-public-datasets.s3.amazonaws.com/scitail/SciTailV1.1.zip",
|
73 |
}
|
74 |
|
75 |
+
_SUPPORTED_TASKS = ["TEXTUAL_ENTAILMENT"]
|
76 |
|
77 |
_SOURCE_VERSION = "1.1.0"
|
78 |
|