Datasets:
Tasks:
Text Classification
Sub-tasks:
sentiment-classification
Languages:
Chinese
Size:
100K - 1M
Tags:
jd
License:
kuroneko5943
commited on
Commit
·
d66d66e
1
Parent(s):
b782bf9
Update jd21.py
Browse files
jd21.py
CHANGED
@@ -70,12 +70,10 @@ class JD21(datasets.GeneratorBasedBuilder):
|
|
70 |
)
|
71 |
|
72 |
def _split_generators(self, dl_manager):
|
73 |
-
downloaded_file = dl_manager.download_and_extract(self.config.data_url)
|
74 |
-
print(downloaded_file)
|
75 |
|
76 |
-
test_file = rf'{
|
77 |
-
dev_file = rf'{
|
78 |
-
train_file = rf'{
|
79 |
return [datasets.SplitGenerator(name=datasets.Split.TEST,
|
80 |
gen_kwargs={
|
81 |
"data_file": dl_manager.download(test_file),
|
|
|
70 |
)
|
71 |
|
72 |
def _split_generators(self, dl_manager):
|
|
|
|
|
73 |
|
74 |
+
test_file = rf'{self.config.data_url}test\{self.config.name}.txt'
|
75 |
+
dev_file = rf'{self.config.data_url}dev\{self.config.name}.txt'
|
76 |
+
train_file = rf'{self.config.data_url}train\{self.config.name}.txt'
|
77 |
return [datasets.SplitGenerator(name=datasets.Split.TEST,
|
78 |
gen_kwargs={
|
79 |
"data_file": dl_manager.download(test_file),
|