Update LongConL.py
Browse files- LongConL.py +3 -2
LongConL.py
CHANGED
|
@@ -78,6 +78,7 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
|
|
| 78 |
|
| 79 |
# Update URLs with the valid task name
|
| 80 |
urls = {key: val.format(task_name=valid_task_name) for key, val in _URLS.items()}
|
|
|
|
| 81 |
downloaded_files = dl_manager.download_and_extract(urls)
|
| 82 |
|
| 83 |
return [
|
|
@@ -98,8 +99,8 @@ class LongConLDataset(datasets.GeneratorBasedBuilder):
|
|
| 98 |
def _generate_examples(self, file_path):
|
| 99 |
"""Generate examples from the dataset CSV."""
|
| 100 |
data = pd.read_csv(file_path)
|
| 101 |
-
print("
|
| 102 |
-
print("
|
| 103 |
print(data.head()) # Display first few rows
|
| 104 |
data_dict = data.to_dict(orient="records")
|
| 105 |
print(f"Number of examples to generate: {len(data_dict)}")
|
|
|
|
| 78 |
|
| 79 |
# Update URLs with the valid task name
|
| 80 |
urls = {key: val.format(task_name=valid_task_name) for key, val in _URLS.items()}
|
| 81 |
+
print("Resolved URLs:", urls)
|
| 82 |
downloaded_files = dl_manager.download_and_extract(urls)
|
| 83 |
|
| 84 |
return [
|
|
|
|
| 99 |
def _generate_examples(self, file_path):
|
| 100 |
"""Generate examples from the dataset CSV."""
|
| 101 |
data = pd.read_csv(file_path)
|
| 102 |
+
print("Loaded file path:", file_path)
|
| 103 |
+
print("Shape of data:", data.shape)
|
| 104 |
print(data.head()) # Display first few rows
|
| 105 |
data_dict = data.to_dict(orient="records")
|
| 106 |
print(f"Number of examples to generate: {len(data_dict)}")
|