ThatOneDuck commited on
Commit
7b56660
1 Parent(s): 149a21f

reinit emotion dataset

Browse files
README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - code
4
+ pretty_name: "English Emotion classification"
5
+ tags:
6
+ - classification
7
+ license: "bsd"
8
+ task_categories:
9
+ - text-classification
10
+ ---
11
+
12
+ 一个包含六种基本情绪(愤怒、恐惧、喜悦、爱、悲伤和惊讶)的英文Twitter消息数据集
13
+
14
+ Github 链接 https://github.com/dair-ai/emotion_dataset
15
+
data/test-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:77e7ab878e3edec69d9ef86f0878ce98d1c441392d5affd8a3a5faebf13aadf1
3
- size 127104
 
 
 
 
data/train-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c6802436cb2e759c8e056abf8a676a82a8082cf19e5c9df6e81f2fac94875257
3
- size 1012845
 
 
 
 
data/validation-00000-of-00001.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:834d13dce5e932637869cc28f0e85cd1c1f8c588e4f755334902827ebea74903
3
- size 124863
 
 
 
 
main.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # --------------------------------------------
2
+ import codefast as cf
3
+ from rich import print
4
+ from typing import List, Union, Callable, Set, Dict, Tuple, Optional, Any
5
+
6
+ from pydantic import BaseModel
7
+
8
+ from codefast.patterns.pipeline import Pipeline, BeeMaxin
9
+ # —--------------------------------------------
10
+ import datasets
11
+
12
+ ds = datasets.load_dataset('ttxy/emotion')
13
+ print(ds)
14
+ X = ds['train'].to_pandas()
15
+ Xv = ds['validation'].to_pandas()
16
+ Xt = ds['test'].to_pandas()
17
+ X.to_csv('train.csv', index=False)
18
+ Xv.to_csv('valid.csv', index=False)
19
+ Xt.to_csv('test.csv', index=False)
20
+
21
+
test.csv ADDED
The diff for this file is too large to render. See raw diff
 
train.csv ADDED
The diff for this file is too large to render. See raw diff
 
valid.csv ADDED
The diff for this file is too large to render. See raw diff