Download Load Dataset from Rizqi/Emotion-Bert: direct link, hf CLI and curl.
- Browser
- Download file 213 Bytes
-
https://huggingface.co/Rizqi/Emotion-Bert/resolve/main/Load%20Dataset
- Command line
-
hf download 'hf://Rizqi/Emotion-Bert/Load Dataset'
-
curl -L -o 'Load Dataset' https://huggingface.co/Rizqi/Emotion-Bert/resolve/main/Load%20Dataset
213 Bytes
| data = pd.read_csv('emotion_dataset_raw.csv') | |
| le = LabelEncoder() | |
| le.fit(data.Emotion) | |
| print('Beberapa macam emosi dalam dataset:', list(le.classes_)) | |
| data['Emotion'] = le.fit_transform(data.Emotion) | |
| data.head() |