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

More debug logs

parent 1809724f
1 merge request!13Fix anonymizer errors
Pipeline #15183 passed with stages
in 1 minute and 40 seconds
......@@ -116,11 +116,21 @@ class NERFileMorphosyntacticDictionary(MorphosyntacticDictionary):
list(letters), size)).upper()
word = lemma
else:
ls = list(self._dictionary[entry_type].keys())
_log.debug(f"Choosing random"
f" entry_type {entry_type} "
f"{ls}")
morpho_tag = random.choice(
list(self._dictionary[entry_type].keys())
)
xs = list(
self._dictionary[entry_type][morpho_tag].keys()
)
_log.debug(f"Choosing random lemma {xs}")
lemma = random.choice(
list(self._dictionary[entry_type][morpho_tag].keys())
list(
self._dictionary[entry_type][morpho_tag].keys()
)
)
word = lemma
except IndexError as exp:
......
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