Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
Catalan
Size:
10K - 100K
License:
Update paws-ca.py
Browse files- paws-ca.py +6 -6
paws-ca.py
CHANGED
|
@@ -85,13 +85,13 @@ class PAWSX(datasets.GeneratorBasedBuilder):
|
|
| 85 |
|
| 86 |
def _generate_examples(self, filepath):
|
| 87 |
with open(filepath, encoding='utf-8') as f:
|
| 88 |
-
|
| 89 |
-
|
| 90 |
yield i, {
|
| 91 |
-
'id':
|
| 92 |
-
'sentence1':
|
| 93 |
-
'sentence2':
|
| 94 |
-
'label': str(
|
| 95 |
}
|
| 96 |
|
| 97 |
|
|
|
|
| 85 |
|
| 86 |
def _generate_examples(self, filepath):
|
| 87 |
with open(filepath, encoding='utf-8') as f:
|
| 88 |
+
data = json.load(f)
|
| 89 |
+
for i, row in enumerate(data):
|
| 90 |
yield i, {
|
| 91 |
+
'id': row['id'],
|
| 92 |
+
'sentence1': row['sentence1'],
|
| 93 |
+
'sentence2': row['sentence2'],
|
| 94 |
+
'label': str(row['label']),
|
| 95 |
}
|
| 96 |
|
| 97 |
|