OmThakur commited on
Commit
0a90b57
1 Parent(s): 8a0af8c

Upload 5 files

Browse files
Files changed (5) hide show
  1. README.md +1 -0
  2. create_dataset.py +14 -0
  3. test.jsonl +0 -0
  4. train.jsonl +0 -0
  5. validation.jsonl +0 -0
README.md ADDED
@@ -0,0 +1 @@
 
 
1
+ ** Attention: There appears an overlap in train / test. I trained a model on the train set and achieved 100% acc on test set. With the original emotion dataset this is not the case (92.4% acc)**
create_dataset.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+
3
+
4
+ def main():
5
+ raw_dset = load_dataset("emotion")
6
+ labels = raw_dset["train"].features["label"]
7
+
8
+ for split, dset in raw_dset.items():
9
+ dset = dset.map(lambda x: {"label_text": labels.int2str(x["label"])}, num_proc=4)
10
+ dset.to_json(f"{split}.jsonl")
11
+
12
+
13
+ if __name__ == "__main__":
14
+ main()
test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
validation.jsonl ADDED
The diff for this file is too large to render. See raw diff