diff --git a/src/dictionaries/morphosyntactic/ner_file.py b/src/dictionaries/morphosyntactic/ner_file.py index 55a4b65646517a559ad2963157cec5a39f722b90..809738f9f3c36215e375d63f2cf47d2c0cf43d88 100644 --- a/src/dictionaries/morphosyntactic/ner_file.py +++ b/src/dictionaries/morphosyntactic/ner_file.py @@ -95,8 +95,10 @@ class NERFileMorphosyntacticDictionary(MorphosyntacticDictionary): try: if entry_type in self._dictionary \ and morpho_tag in self._dictionary[entry_type] \ - and len(list(self._dictionary[ - entry_type][morpho_tag].keys())) > 0: + and len(list( + self._dictionary[ + entry_type][morpho_tag].keys()) + ) > 0: lemma = random.choice( list(self._dictionary[entry_type][morpho_tag].keys()) )