Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
json
Languages:
Vietnamese
Size:
1K - 10K
DOI:
License:
File size: 904 Bytes
6b29edc be30eb6 5992786 be30eb6 6b29edc be30eb6 6b29edc be30eb6 4624208 6b29edc be30eb6 6b29edc be30eb6 6b29edc be30eb6 6b29edc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
#!/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()
|