Datasets:
Tasks:
Text Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
10K<n<100K
License:
Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
blog_authorship_corpus.py
CHANGED
@@ -122,8 +122,8 @@ class BlogAuthorshipCorpus(datasets.GeneratorBasedBuilder):
|
|
122 |
date = parse_date(line)
|
123 |
elif line != "" and not line.startswith("<"):
|
124 |
if date == "":
|
125 |
-
logger.warning("Date missing for {} in {}"
|
126 |
-
assert date is not None, "Date is missing before {}"
|
127 |
yield key, {
|
128 |
"text": line,
|
129 |
"date": date,
|
|
|
122 |
date = parse_date(line)
|
123 |
elif line != "" and not line.startswith("<"):
|
124 |
if date == "":
|
125 |
+
logger.warning(f"Date missing for {line} in {file_name}")
|
126 |
+
assert date is not None, f"Date is missing before {line}"
|
127 |
yield key, {
|
128 |
"text": line,
|
129 |
"date": date,
|