Update files from the datasets library (from 1.6.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.0
- break_data.py +1 -4
break_data.py
CHANGED
|
@@ -1,14 +1,11 @@
|
|
| 1 |
"""TODO(break_data): Add a description here."""
|
| 2 |
|
| 3 |
-
from __future__ import absolute_import, division, print_function
|
| 4 |
|
| 5 |
import csv
|
| 6 |
import json
|
| 7 |
import os
|
| 8 |
import textwrap
|
| 9 |
|
| 10 |
-
import six
|
| 11 |
-
|
| 12 |
import datasets
|
| 13 |
|
| 14 |
|
|
@@ -138,7 +135,7 @@ class BreakData(datasets.GeneratorBasedBuilder):
|
|
| 138 |
|
| 139 |
def _info(self):
|
| 140 |
# TODO(break_data): Specifies the datasets.DatasetInfo object
|
| 141 |
-
features = {text_feature: datasets.Value("string") for text_feature in
|
| 142 |
return datasets.DatasetInfo(
|
| 143 |
# This is the description that will appear on the datasets page.
|
| 144 |
description=_DESCRIPTION,
|
|
|
|
| 1 |
"""TODO(break_data): Add a description here."""
|
| 2 |
|
|
|
|
| 3 |
|
| 4 |
import csv
|
| 5 |
import json
|
| 6 |
import os
|
| 7 |
import textwrap
|
| 8 |
|
|
|
|
|
|
|
| 9 |
import datasets
|
| 10 |
|
| 11 |
|
|
|
|
| 135 |
|
| 136 |
def _info(self):
|
| 137 |
# TODO(break_data): Specifies the datasets.DatasetInfo object
|
| 138 |
+
features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features.keys()}
|
| 139 |
return datasets.DatasetInfo(
|
| 140 |
# This is the description that will appear on the datasets page.
|
| 141 |
description=_DESCRIPTION,
|