parquet-converter commited on
Commit
1e616f8
β€’
1 Parent(s): b83b208

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,28 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
28
- *.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,3 +0,0 @@
1
- # GoEmotions
2
-
3
- This dataset is a port of the official [`go_emotions` dataset](https://huggingface.co/datasets/go_emotions) on the Hub. It only contains the `simplified` subset as these are the only fields we need for text classification.
 
 
 
 
validation.jsonl β†’ SetFit--go_emotions/json-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bff7228526b2d0053a50cc16e8d1b4093d46f919c7f7097387fc7b5dbaf396d1
3
- size 2402070
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b93d0550ca7c29c615ce4727ef5344ddf6eb4176a7557e85c265f95d44ea72e
3
+ size 359301
test.jsonl β†’ SetFit--go_emotions/json-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:63c68fd56fa2470a701135a0c31dd8aff946a535efef663a7917415149e88630
3
- size 2400101
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0afdb70f458e282cd540a48b9b685723286f70e4a79095b155b913a6bae5e7f
3
+ size 2807876
train.jsonl β†’ SetFit--go_emotions/json-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b14e8b3fd45a657f4a01267fab784db088893da29e3415fbcd2221d8dfac4198
3
- size 19222477
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e6f5f40062d7a4607114b87320355598611c6466a2fb115c156c633a7e54842
3
+ size 362822
create_dataset.py DELETED
@@ -1,26 +0,0 @@
1
- from datasets import load_dataset
2
-
3
-
4
- # +
5
-
6
- def main():
7
- raw_dset = load_dataset("go_emotions", "simplified")
8
- labels = raw_dset["train"].features["labels"].feature
9
-
10
- def create_labels(row):
11
- labels_columns = {}
12
- for _label in labels.names:
13
- labels_columns.setdefault(_label, 0)
14
- labels_columns.update({labels.int2str(_l):1 for _l in row['labels']})
15
- return labels_columns
16
-
17
- for split, dset in raw_dset.items():
18
- dset = dset.map(lambda x: create_labels(x), num_proc=4)
19
- dset = dset.remove_columns(["id", "labels"])
20
- dset.to_json(f"{split}.jsonl")
21
-
22
-
23
- # -
24
-
25
- if __name__ == "__main__":
26
- main()