Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
json
Languages:
Vietnamese
Size:
1K - 10K
DOI:
License:
| #!/usr/bin/env python3 | |
| """Validate UTS2017_Bank dataset loading from HuggingFace Hub.""" | |
| from datasets import load_dataset | |
| def main(): | |
| """Test loading all dataset configurations from HuggingFace Hub.""" | |
| configs = ["classification", "sentiment", "aspect_sentiment"] | |
| print("🔍 Validating UTS2017_Bank dataset...") | |
| for config in configs: | |
| try: | |
| dataset = load_dataset("undertheseanlp/UTS2017_Bank", config) | |
| train_size = len(dataset["train"]) | |
| test_size = len(dataset["test"]) | |
| print(f"✅ {config}: {train_size} train, {test_size} test") | |
| except Exception as e: | |
| print(f"❌ {config}: {e}") | |
| return False | |
| print("\n🎉 All configurations loaded successfully!") | |
| print("💡 Usage: load_dataset('undertheseanlp/UTS2017_Bank', '<config>')") | |
| return True | |
| if __name__ == "__main__": | |
| main() | |