gabrielaltay
commited on
Commit
•
782106c
1
Parent(s):
75c33f4
Delete constants.py
Browse files- constants.py +0 -44
constants.py
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
import json
|
2 |
-
from collections import defaultdict
|
3 |
-
from enum import Enum
|
4 |
-
from types import SimpleNamespace
|
5 |
-
|
6 |
-
from bigbio.utils.license import License
|
7 |
-
|
8 |
-
|
9 |
-
BigBioValues = SimpleNamespace(NULL="<BB_NULL_STR>")
|
10 |
-
|
11 |
-
# shamelessly compied from:
|
12 |
-
# https://github.com/huggingface/datasets/blob/master/src/datasets/utils/metadata.py
|
13 |
-
langs_json = json.load(open("languages.json", "r"))
|
14 |
-
langs_dict = {k.replace("-", "_").upper(): v for k, v in json.loads(langs_json).items()}
|
15 |
-
Lang = Enum("Lang", langs_dict)
|
16 |
-
|
17 |
-
|
18 |
-
METADATA: dict = {
|
19 |
-
"_LOCAL": bool,
|
20 |
-
"_LANGUAGES": Lang,
|
21 |
-
"_PUBMED": bool,
|
22 |
-
"_LICENSE": License,
|
23 |
-
"_DISPLAYNAME": str,
|
24 |
-
}
|
25 |
-
|
26 |
-
|
27 |
-
class Tasks(Enum):
|
28 |
-
NAMED_ENTITY_RECOGNITION = "NER"
|
29 |
-
NAMED_ENTITY_DISAMBIGUATION = "NED"
|
30 |
-
EVENT_EXTRACTION = "EE"
|
31 |
-
RELATION_EXTRACTION = "RE"
|
32 |
-
COREFERENCE_RESOLUTION = "COREF"
|
33 |
-
|
34 |
-
QUESTION_ANSWERING = "QA"
|
35 |
-
|
36 |
-
TEXTUAL_ENTAILMENT = "TE"
|
37 |
-
|
38 |
-
SEMANTIC_SIMILARITY = "STS"
|
39 |
-
|
40 |
-
PARAPHRASING = "PARA"
|
41 |
-
TRANSLATION = "TRANSL"
|
42 |
-
SUMMARIZATION = "SUM"
|
43 |
-
|
44 |
-
TEXT_CLASSIFICATION = "TXTCLASS"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|