gabrielaltay commited on
Commit
fdc8ec4
1 Parent(s): ef1e503

Update tmp-scitail.py

Browse files
Files changed (1) hide show
  1. tmp-scitail.py +32 -6
tmp-scitail.py CHANGED
@@ -22,17 +22,43 @@ the annotation of such premise-hypothesis pair as supports (entails) or not (neu
22
  to create the SciTail dataset. The dataset contains 27,026 examples with 10,101 examples with
23
  entails label and 16,925 examples with neutral label.
24
  """
25
-
26
  import os
27
 
28
  import datasets
29
  import pandas as pd
30
 
31
- from configs import BigBioConfig
32
- from constants import Lang, Tasks
33
- from license import Licenses
34
 
35
- _LANGUAGES = [Lang.EN]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  _PUBMED = False
37
  _LOCAL = False
38
  _CITATION = """\
@@ -59,7 +85,7 @@ entails label and 16,925 examples with neutral label.
59
 
60
  _HOMEPAGE = "https://allenai.org/data/scitail"
61
 
62
- _LICENSE = Licenses.APACHE_2p0
63
 
64
  _URLS = {
65
  _DATASETNAME: "https://ai2-public-datasets.s3.amazonaws.com/scitail/SciTailV1.1.zip",
 
22
  to create the SciTail dataset. The dataset contains 27,026 examples with 10,101 examples with
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
+ class Tasks(Enum):
33
+ NAMED_ENTITY_RECOGNITION = "NER"
34
+ NAMED_ENTITY_DISAMBIGUATION = "NED"
35
+ EVENT_EXTRACTION = "EE"
36
+ RELATION_EXTRACTION = "RE"
37
+ COREFERENCE_RESOLUTION = "COREF"
38
+
39
+ QUESTION_ANSWERING = "QA"
40
+
41
+ TEXTUAL_ENTAILMENT = "TE"
42
+
43
+ SEMANTIC_SIMILARITY = "STS"
44
+
45
+ PARAPHRASING = "PARA"
46
+ TRANSLATION = "TRANSL"
47
+ SUMMARIZATION = "SUM"
48
+
49
+ TEXT_CLASSIFICATION = "TXTCLASS"
50
+
51
+ @dataclass
52
+ class BigBioConfig(datasets.BuilderConfig):
53
+ """BuilderConfig for BigBio."""
54
+
55
+ name: str = None
56
+ version: datasets.Version = None
57
+ description: str = None
58
+ schema: str = None
59
+ subset_id: str = None
60
+
61
+ _LANGUAGES = ["EN"]
62
  _PUBMED = False
63
  _LOCAL = False
64
  _CITATION = """\
 
85
 
86
  _HOMEPAGE = "https://allenai.org/data/scitail"
87
 
88
+ _LICENSE = "Apache 2.0"
89
 
90
  _URLS = {
91
  _DATASETNAME: "https://ai2-public-datasets.s3.amazonaws.com/scitail/SciTailV1.1.zip",