Datasets:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
nli_tr.py
CHANGED
@@ -45,7 +45,7 @@ _HOMEPAGE = "https://github.com/boun-tabi/NLI-TR"
|
|
45 |
|
46 |
|
47 |
class NLITRConfig(datasets.BuilderConfig):
|
48 |
-
"""
|
49 |
|
50 |
def __init__(self, version=None, data_url=None, **kwargs):
|
51 |
super(NLITRConfig, self).__init__(version=datasets.Version(version, ""), **kwargs)
|
@@ -150,7 +150,7 @@ class NliTr(datasets.GeneratorBasedBuilder):
|
|
150 |
]
|
151 |
|
152 |
def _generate_examples(self, filepath, split):
|
153 |
-
"""
|
154 |
|
155 |
with codecs.open(filepath, encoding="utf-8") as f:
|
156 |
for idx, row in enumerate(f):
|
|
|
45 |
|
46 |
|
47 |
class NLITRConfig(datasets.BuilderConfig):
|
48 |
+
"""BuilderConfig for NLI-TR"""
|
49 |
|
50 |
def __init__(self, version=None, data_url=None, **kwargs):
|
51 |
super(NLITRConfig, self).__init__(version=datasets.Version(version, ""), **kwargs)
|
|
|
150 |
]
|
151 |
|
152 |
def _generate_examples(self, filepath, split):
|
153 |
+
"""Yields examples."""
|
154 |
|
155 |
with codecs.open(filepath, encoding="utf-8") as f:
|
156 |
for idx, row in enumerate(f):
|