Dataset Viewer
Auto-converted to Parquet Duplicate
text
string
label
int64
Hello, how are you?
0
I am fine, thank you!
1

This dataset has been generated using:

from datasets import Dataset, DatasetDict

# Create a very small dataset
data = {
    "text": [
        "Hello, how are you?",
        "I am fine, thank you!",
        "Good morning!",
        "See you later!",
    ],
    "label": [0, 1, 0, 1],  # Example binary labels
}

# Convert the data into a Hugging Face Dataset
dataset = Dataset.from_dict(data)

# Split into train and test sets
dataset_dict = DatasetDict(
    {
        "train": dataset.select([0, 1]),
        "test": dataset.select([2, 3]),
    }
)

# Push the dataset to the Hugging Face Hub
dataset_name = "flexsystems/flex-e2e-super-tiny-dataset"
dataset_dict.push_to_hub(dataset_name, private=False)

print(f"Dataset '{dataset_name}' has been pushed to the Hugging Face Hub.")
Downloads last month
88