Skip to content

Commit

Permalink
Add black style
Browse files Browse the repository at this point in the history
  • Loading branch information
BelenSantamaria committed Jan 31, 2022
1 parent 443ebec commit 01a3562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rasa_nlu_examples/extractors/flashtext_entity_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def __init__(
)
for non_word_boundary in config["non_word_boundaries"]:
self.keyword_processor.add_non_word_boundary(non_word_boundary)
words = pathlib.Path(self.path).read_text(encoding=config["encoding"]).split("\n")
words = (
pathlib.Path(self.path).read_text(encoding=config["encoding"]).split("\n")
)
if len(words) == 0:
rasa.shared.utils.io.raise_warning(
f"No words found in the {pathlib.Path(self.path)} file."
Expand Down

0 comments on commit 01a3562

Please sign in to comment.