Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- few_rel.py +1 -1
few_rel.py
CHANGED
|
@@ -131,7 +131,7 @@ class FewRel(datasets.GeneratorBasedBuilder):
|
|
| 131 |
]
|
| 132 |
|
| 133 |
def _generate_examples(self, filepath, pid2name, return_names):
|
| 134 |
-
"""
|
| 135 |
pid2name_dict = {}
|
| 136 |
with open(pid2name, encoding="utf-8") as f:
|
| 137 |
data = json.load(f)
|
|
|
|
| 131 |
]
|
| 132 |
|
| 133 |
def _generate_examples(self, filepath, pid2name, return_names):
|
| 134 |
+
"""Yields examples."""
|
| 135 |
pid2name_dict = {}
|
| 136 |
with open(pid2name, encoding="utf-8") as f:
|
| 137 |
data = json.load(f)
|