Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
Chinese
Size:
100K - 1M
Tags:
jd
License:
Commit
·
6707cdf
1
Parent(s):
bc06aae
Update jd21.py
Browse files
jd21.py
CHANGED
@@ -50,7 +50,7 @@ class JD21(datasets.GeneratorBasedBuilder):
|
|
50 |
label_column='label',
|
51 |
citation="",
|
52 |
data_dir= "",
|
53 |
-
data_url = r"https://huggingface.co/datasets/
|
54 |
url='https://github.com/ws719547997/LNB-DA')
|
55 |
for domain_name in domain_list
|
56 |
]
|
@@ -73,9 +73,9 @@ class JD21(datasets.GeneratorBasedBuilder):
|
|
73 |
downloaded_file = dl_manager.download_and_extract(self.config.data_url)
|
74 |
print(downloaded_file)
|
75 |
|
76 |
-
test_file = rf'{downloaded_file}\
|
77 |
-
dev_file = rf'{downloaded_file}\
|
78 |
-
train_file = rf'{downloaded_file}\
|
79 |
return [datasets.SplitGenerator(name=datasets.Split.TEST,
|
80 |
gen_kwargs={
|
81 |
"data_file": test_file,
|
|
|
50 |
label_column='label',
|
51 |
citation="",
|
52 |
data_dir= "",
|
53 |
+
data_url = r"https://huggingface.co/datasets/kuroneko5943/jd21/resolve/main/",
|
54 |
url='https://github.com/ws719547997/LNB-DA')
|
55 |
for domain_name in domain_list
|
56 |
]
|
|
|
73 |
downloaded_file = dl_manager.download_and_extract(self.config.data_url)
|
74 |
print(downloaded_file)
|
75 |
|
76 |
+
test_file = rf'{downloaded_file}\test\{self.config.name}.txt'
|
77 |
+
dev_file = rf'{downloaded_file}\dev\{self.config.name}.txt'
|
78 |
+
train_file = rf'{downloaded_file}\train\{self.config.name}.txt'
|
79 |
return [datasets.SplitGenerator(name=datasets.Split.TEST,
|
80 |
gen_kwargs={
|
81 |
"data_file": test_file,
|