Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
json
Languages:
Vietnamese
Size:
1K - 10K
DOI:
License:
Vu Anh commited on
Commit ·
5992786
1
Parent(s): be30eb6
Remove try-except for datasets import - simplify validation script
Browse files- validate_dataset.py +1 -8
validate_dataset.py
CHANGED
|
@@ -5,12 +5,7 @@ Validation script to verify the UTS2017_Bank dataset is properly created and loa
|
|
| 5 |
import json
|
| 6 |
from pathlib import Path
|
| 7 |
|
| 8 |
-
|
| 9 |
-
from datasets import load_dataset
|
| 10 |
-
DATASETS_AVAILABLE = True
|
| 11 |
-
except ImportError:
|
| 12 |
-
DATASETS_AVAILABLE = False
|
| 13 |
-
print("Warning: 'datasets' library not available. Skipping HuggingFace validation.")
|
| 14 |
|
| 15 |
|
| 16 |
def validate_file_structure():
|
|
@@ -170,8 +165,6 @@ def validate_data_content():
|
|
| 170 |
|
| 171 |
def validate_huggingface_loading():
|
| 172 |
"""Validate that the dataset can be loaded with HuggingFace datasets."""
|
| 173 |
-
if not DATASETS_AVAILABLE:
|
| 174 |
-
return
|
| 175 |
|
| 176 |
print("\n" + "=" * 60)
|
| 177 |
print("VALIDATING HUGGINGFACE LOADING")
|
|
|
|
| 5 |
import json
|
| 6 |
from pathlib import Path
|
| 7 |
|
| 8 |
+
from datasets import load_dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
def validate_file_structure():
|
|
|
|
| 165 |
|
| 166 |
def validate_huggingface_loading():
|
| 167 |
"""Validate that the dataset can be loaded with HuggingFace datasets."""
|
|
|
|
|
|
|
| 168 |
|
| 169 |
print("\n" + "=" * 60)
|
| 170 |
print("VALIDATING HUGGINGFACE LOADING")
|