Skip to content

Commit 637d6b8

Browse files
author
Alan Akbik
authored
Merge pull request flairNLP#761 from zalandoresearch/flairNLPGH-614-language-models
flairNLPGH-614: new language models
2 parents 7567710 + 7f83460 commit 637d6b8

File tree

2 files changed

+131
-182
lines changed

2 files changed

+131
-182
lines changed

flair/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def __init__(
371371
self.add_token(token)
372372

373373
# log a warning if the dataset is empty
374-
if not text:
374+
if text == "":
375375
log.warn(
376376
"ACHTUNG: An empty Sentence was created! Are there empty strings in your dataset?"
377377
)

0 commit comments

Comments
 (0)