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