Skip to content

Commit

Permalink
datasets: type -> isinstance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-it committed Aug 11, 2023
1 parent 5bd4526 commit 2ddae63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flair/datasets/sequence_labeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -4818,7 +4818,7 @@ def __init__(
base_path = flair.cache_root / "datasets" if not base_path else Path(base_path)

# if only one language is given
if type(languages) == str:
if isinstance(languages, str):
languages = [languages]

# column format
Expand Down

0 comments on commit 2ddae63

Please sign in to comment.