update
Browse files
dataset/{rct-sample → rct_sample}/dev.jsonl
RENAMED
File without changes
|
dataset/{rct-sample → rct_sample}/label2id.json
RENAMED
File without changes
|
dataset/{rct-sample → rct_sample}/test.jsonl
RENAMED
File without changes
|
dataset/{rct-sample → rct_sample}/train.jsonl
RENAMED
File without changes
|
dataset_stats.py
CHANGED
@@ -8,7 +8,8 @@ def count_word(text):
|
|
8 |
|
9 |
|
10 |
if __name__ == '__main__':
|
11 |
-
data = ["chemprot", "citation_intent", "hyperpartisan_news", "
|
|
|
12 |
stats = {}
|
13 |
for d in data:
|
14 |
_data = load_dataset('asahi417/multi_domain_document_classification', d)
|
|
|
8 |
|
9 |
|
10 |
if __name__ == '__main__':
|
11 |
+
data = ["chemprot", "citation_intent", "hyperpartisan_news", "rct_sample", "sciie", "amcd", 'yelp_review',
|
12 |
+
'tweet_eval_irony', 'tweet_eval_hate', 'tweet_eval_emotion']
|
13 |
stats = {}
|
14 |
for d in data:
|
15 |
_data = load_dataset('asahi417/multi_domain_document_classification', d)
|
multi_domain_document_classification.py
CHANGED
@@ -6,7 +6,7 @@ import datasets
|
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
_DESCRIPTION = """Multi domain document classification dataset used in [https://arxiv.org/pdf/2004.10964.pdf](https://arxiv.org/pdf/2004.10964.pdf)"""
|
8 |
_NAME = "multi_domain_document_classification"
|
9 |
-
_VERSION = "0.2.
|
10 |
_CITATION = """
|
11 |
@inproceedings{dontstoppretraining2020,
|
12 |
author = {Suchin Gururangan and Ana Marasović and Swabha Swayamdipta and Kyle Lo and Iz Beltagy and Doug Downey and Noah A. Smith},
|
@@ -18,7 +18,7 @@ _CITATION = """
|
|
18 |
|
19 |
_HOME_PAGE = "https://github.com/asahi417/m3"
|
20 |
_URL = f'https://huggingface.co/datasets/asahi417/{_NAME}/raw/main/dataset'
|
21 |
-
_DATA_TYPE = ["chemprot", "citation_intent", "hyperpartisan_news", "
|
22 |
"yelp_review", "tweet_eval_irony", "tweet_eval_hate", "tweet_eval_emotion"]
|
23 |
_URLS = {
|
24 |
k:
|
@@ -33,7 +33,7 @@ _LABELS = {
|
|
33 |
"chemprot": {"ACTIVATOR": 0, "AGONIST": 1, "AGONIST-ACTIVATOR": 2, "AGONIST-INHIBITOR": 3, "ANTAGONIST": 4, "DOWNREGULATOR": 5, "INDIRECT-DOWNREGULATOR": 6, "INDIRECT-UPREGULATOR": 7, "INHIBITOR": 8, "PRODUCT-OF": 9, "SUBSTRATE": 10, "SUBSTRATE_PRODUCT-OF": 11, "UPREGULATOR": 12},
|
34 |
"citation_intent": {"Background": 0, "CompareOrContrast": 1, "Extends": 2, "Future": 3, "Motivation": 4, "Uses": 5},
|
35 |
"hyperpartisan_news": {"false": 0, "true": 1},
|
36 |
-
"
|
37 |
"sciie": {"COMPARE": 0, "CONJUNCTION": 1, "EVALUATE-FOR": 2, "FEATURE-OF": 3, "HYPONYM-OF": 4, "PART-OF": 5, "USED-FOR": 6},
|
38 |
"amcd": {"false": 0, "true": 1},
|
39 |
"yelp_review": {"5 star": 4, "4 star": 3, "3 star": 2, "2 star": 1, "1 star": 0},
|
|
|
6 |
logger = datasets.logging.get_logger(__name__)
|
7 |
_DESCRIPTION = """Multi domain document classification dataset used in [https://arxiv.org/pdf/2004.10964.pdf](https://arxiv.org/pdf/2004.10964.pdf)"""
|
8 |
_NAME = "multi_domain_document_classification"
|
9 |
+
_VERSION = "0.2.3"
|
10 |
_CITATION = """
|
11 |
@inproceedings{dontstoppretraining2020,
|
12 |
author = {Suchin Gururangan and Ana Marasović and Swabha Swayamdipta and Kyle Lo and Iz Beltagy and Doug Downey and Noah A. Smith},
|
|
|
18 |
|
19 |
_HOME_PAGE = "https://github.com/asahi417/m3"
|
20 |
_URL = f'https://huggingface.co/datasets/asahi417/{_NAME}/raw/main/dataset'
|
21 |
+
_DATA_TYPE = ["chemprot", "citation_intent", "hyperpartisan_news", "rct_sample", "sciie", "amcd",
|
22 |
"yelp_review", "tweet_eval_irony", "tweet_eval_hate", "tweet_eval_emotion"]
|
23 |
_URLS = {
|
24 |
k:
|
|
|
33 |
"chemprot": {"ACTIVATOR": 0, "AGONIST": 1, "AGONIST-ACTIVATOR": 2, "AGONIST-INHIBITOR": 3, "ANTAGONIST": 4, "DOWNREGULATOR": 5, "INDIRECT-DOWNREGULATOR": 6, "INDIRECT-UPREGULATOR": 7, "INHIBITOR": 8, "PRODUCT-OF": 9, "SUBSTRATE": 10, "SUBSTRATE_PRODUCT-OF": 11, "UPREGULATOR": 12},
|
34 |
"citation_intent": {"Background": 0, "CompareOrContrast": 1, "Extends": 2, "Future": 3, "Motivation": 4, "Uses": 5},
|
35 |
"hyperpartisan_news": {"false": 0, "true": 1},
|
36 |
+
"rct_sample": {"BACKGROUND": 0, "CONCLUSIONS": 1, "METHODS": 2, "OBJECTIVE": 3, "RESULTS": 4},
|
37 |
"sciie": {"COMPARE": 0, "CONJUNCTION": 1, "EVALUATE-FOR": 2, "FEATURE-OF": 3, "HYPONYM-OF": 4, "PART-OF": 5, "USED-FOR": 6},
|
38 |
"amcd": {"false": 0, "true": 1},
|
39 |
"yelp_review": {"5 star": 4, "4 star": 3, "3 star": 2, "2 star": 1, "1 star": 0},
|