Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
csv
Languages:
code
Size:
10K - 100K
Tags:
classification
License:
File size: 575 Bytes
7b56660 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# --------------------------------------------
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)
|