emotion / main.py
ThatOneDuck's picture
reinit emotion dataset
7b56660
raw
history blame contribute delete
575 Bytes
# --------------------------------------------
import codefast as cf
from rich import print
from typing import List, Union, Callable, Set, Dict, Tuple, Optional, Any
from pydantic import BaseModel
from codefast.patterns.pipeline import Pipeline, BeeMaxin
# —--------------------------------------------
import datasets
ds = datasets.load_dataset('ttxy/emotion')
print(ds)
X = ds['train'].to_pandas()
Xv = ds['validation'].to_pandas()
Xt = ds['test'].to_pandas()
X.to_csv('train.csv', index=False)
Xv.to_csv('valid.csv', index=False)
Xt.to_csv('test.csv', index=False)