region:us
---
license: afl-3.0
---# Assuming you have collected your data in a dictionary format
data = {
    "text": ["Suspicious transaction detected", "Unauthorized access to account", ...],
    "label": [1, 1, ...]  # 1 for fraud, 0 for legitimate
}

# Create a Hugging Face Dataset
dataset = Dataset.from_dict(data)

# Split dataset
train_dataset = dataset.train_test_split(test_size=0.2)['train']
test_dataset = dataset.train_test_split(test_size=0.2)['test']
