Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
csv
Languages:
code
Size:
10K - 100K
Tags:
classification
License:
# -------------------------------------------- | |
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) | |