diff --git a/rasa_nlu_examples/extractors/flashtext_entity_extractor.py b/rasa_nlu_examples/extractors/flashtext_entity_extractor.py index 98634fc..ced2e53 100644 --- a/rasa_nlu_examples/extractors/flashtext_entity_extractor.py +++ b/rasa_nlu_examples/extractors/flashtext_entity_extractor.py @@ -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."