Datasets:
Update cogtext.py
Browse files- cogtext.py +1 -1
cogtext.py
CHANGED
|
@@ -96,7 +96,7 @@ class CogText(datasets.GeneratorBasedBuilder):
|
|
| 96 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
| 97 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
| 98 |
|
| 99 |
-
example_df = pd.read_csv(filepath, compression="gzip"
|
| 100 |
|
| 101 |
for key, row in example_df.iterrows():
|
| 102 |
yield key, {
|
|
|
|
| 96 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
| 97 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
| 98 |
|
| 99 |
+
example_df = pd.read_csv(filepath, compression="gzip")
|
| 100 |
|
| 101 |
for key, row in example_df.iterrows():
|
| 102 |
yield key, {
|