Datasets:
Update files from the datasets library (from 1.6.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.0
- README.md +1 -1
- indonlu.py +2 -7
README.md
CHANGED
@@ -19,7 +19,7 @@ size_categories:
|
|
19 |
facqa:
|
20 |
- 1K<n<10K
|
21 |
hoasa:
|
22 |
-
- n<
|
23 |
keps:
|
24 |
- 1K<n<10K
|
25 |
nergrit:
|
|
|
19 |
facqa:
|
20 |
- 1K<n<10K
|
21 |
hoasa:
|
22 |
+
- 1K<n<10K
|
23 |
keps:
|
24 |
- 1K<n<10K
|
25 |
nergrit:
|
indonlu.py
CHANGED
@@ -14,14 +14,11 @@
|
|
14 |
# limitations under the License.
|
15 |
"""The IndoNLU benchmark is a collection of resources for training, evaluating, and analyzing natural language understanding systems for Bahasa Indonesia"""
|
16 |
|
17 |
-
from __future__ import absolute_import, division, print_function
|
18 |
|
19 |
import ast
|
20 |
import csv
|
21 |
import textwrap
|
22 |
|
23 |
-
import six
|
24 |
-
|
25 |
import datasets
|
26 |
|
27 |
|
@@ -535,12 +532,10 @@ class Indonlu(datasets.GeneratorBasedBuilder):
|
|
535 |
if self.config.name in (sentence_features + ner_ + pos_):
|
536 |
features = {
|
537 |
text_feature: datasets.Sequence(datasets.Value("string"))
|
538 |
-
for text_feature in
|
539 |
}
|
540 |
else:
|
541 |
-
features = {
|
542 |
-
text_feature: datasets.Value("string") for text_feature in six.iterkeys(self.config.text_features)
|
543 |
-
}
|
544 |
|
545 |
if self.config.label_classes:
|
546 |
if self.config.name in sentence_features:
|
|
|
14 |
# limitations under the License.
|
15 |
"""The IndoNLU benchmark is a collection of resources for training, evaluating, and analyzing natural language understanding systems for Bahasa Indonesia"""
|
16 |
|
|
|
17 |
|
18 |
import ast
|
19 |
import csv
|
20 |
import textwrap
|
21 |
|
|
|
|
|
22 |
import datasets
|
23 |
|
24 |
|
|
|
532 |
if self.config.name in (sentence_features + ner_ + pos_):
|
533 |
features = {
|
534 |
text_feature: datasets.Sequence(datasets.Value("string"))
|
535 |
+
for text_feature in self.config.text_features.keys()
|
536 |
}
|
537 |
else:
|
538 |
+
features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features}
|
|
|
|
|
539 |
|
540 |
if self.config.label_classes:
|
541 |
if self.config.name in sentence_features:
|