Skip to content
Snippets Groups Projects
Commit 23c05436 authored by Paweł Walkowiak's avatar Paweł Walkowiak
Browse files

fix pep8

parent 9bcc5e59
1 merge request!13Fix anonymizer errors
Pipeline #15157 passed with stages
in 1 minute and 40 seconds
...@@ -95,8 +95,10 @@ class NERFileMorphosyntacticDictionary(MorphosyntacticDictionary): ...@@ -95,8 +95,10 @@ class NERFileMorphosyntacticDictionary(MorphosyntacticDictionary):
try: try:
if entry_type in self._dictionary \ if entry_type in self._dictionary \
and morpho_tag in self._dictionary[entry_type] \ and morpho_tag in self._dictionary[entry_type] \
and len(list(self._dictionary[ and len(list(
entry_type][morpho_tag].keys())) > 0: self._dictionary[
entry_type][morpho_tag].keys())
) > 0:
lemma = random.choice( lemma = random.choice(
list(self._dictionary[entry_type][morpho_tag].keys()) list(self._dictionary[entry_type][morpho_tag].keys())
) )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment