tkon3 commited on
Commit
4820c8f
·
1 Parent(s): a5930d9
Files changed (4) hide show
  1. arxiv-classification.py +0 -9
  2. test_data.txt +2 -2
  3. train_data.txt +2 -2
  4. val_data.txt +2 -2
arxiv-classification.py CHANGED
@@ -3,7 +3,6 @@ import os
3
 
4
  import datasets
5
  from datasets.tasks import TextClassification
6
- import re
7
 
8
  _CITATION = None
9
 
@@ -57,11 +56,6 @@ class ArxivClassificationDataset(datasets.GeneratorBasedBuilder):
57
  version=datasets.Version("1.0.0"),
58
  description="Arxiv Classification Dataset: A classification task of Arxiv Papers (11 classes)",
59
  ),
60
- ArxivClassificationConfig(
61
- name="arxiv-raw",
62
- version=datasets.Version("1.0.0"),
63
- description="Arxiv Classification Dataset: A classification task of Arxiv Papers (11 classes)",
64
- ),
65
  ]
66
 
67
  DEFAULT_CONFIG_NAME = "arxiv"
@@ -105,7 +99,4 @@ class ArxivClassificationDataset(datasets.GeneratorBasedBuilder):
105
  data = json.loads(row)
106
  label = self._LABELS_DICT[data["label"]]
107
  text = data["text"]
108
- if self.config.name == "arxiv":
109
- text = text.replace("\n", " ")
110
- text = re.sub(" +", " ", text)
111
  yield id_, {"text": text, "label": label}
 
3
 
4
  import datasets
5
  from datasets.tasks import TextClassification
 
6
 
7
  _CITATION = None
8
 
 
56
  version=datasets.Version("1.0.0"),
57
  description="Arxiv Classification Dataset: A classification task of Arxiv Papers (11 classes)",
58
  ),
 
 
 
 
 
59
  ]
60
 
61
  DEFAULT_CONFIG_NAME = "arxiv"
 
99
  data = json.loads(row)
100
  label = self._LABELS_DICT[data["label"]]
101
  text = data["text"]
 
 
 
102
  yield id_, {"text": text, "label": label}
test_data.txt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0e17522dbe84be1cc3bc453d5fc8f5374cae6e2638eee9ac20c7353d63f38808
3
- size 295566289
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73100a1f6440bcb81cee80c0875e6f7d22d2fa07c640a2740780e5f208b64c41
3
+ size 285513105
train_data.txt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7229ae6e9da29dc4da506f0a270b3ad2093993486fed22a6a747d4b747c2c7ff
3
- size 1412133902
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad859c5102032f05bcaeab697c35413a05bb21c436ca71b1acb0e5a604b79ed9
3
+ size 1363220828
val_data.txt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8615cc1c8af67cd66d833156a4ba5906cbc393feefe2a210ef33b82e4fcd8ecb
3
- size 296666497
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5630063bcc53d1b62c53d42ec0dea8997c099554f96fef68e36cb23759c8b97e
3
+ size 286587448