Datasets:
Tasks:
Text Classification
Languages:
English
Size:
10K<n<100K
ArXiv:
Tags:
fake-news-detection
License:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
liar.py
CHANGED
@@ -115,7 +115,7 @@ class Liar(datasets.GeneratorBasedBuilder):
|
|
115 |
]
|
116 |
|
117 |
def _generate_examples(self, filepath, split):
|
118 |
-
"""
|
119 |
|
120 |
with open(filepath, encoding="utf-8") as tsv_file:
|
121 |
reader = csv.reader(tsv_file, delimiter="\t", quoting=csv.QUOTE_NONE)
|
|
|
115 |
]
|
116 |
|
117 |
def _generate_examples(self, filepath, split):
|
118 |
+
"""Yields examples."""
|
119 |
|
120 |
with open(filepath, encoding="utf-8") as tsv_file:
|
121 |
reader = csv.reader(tsv_file, delimiter="\t", quoting=csv.QUOTE_NONE)
|