Commit a3e35999 authored by Tomasz Walkowiak's avatar Tomasz Walkowiak

new version

parent a84e0b4b
Pipeline #2559 passed with stages
in 1 minute and 45 seconds
......@@ -122,8 +122,10 @@ class Category:
els = elem.split(" ")
for el in els:
el = el.split("(")[0]
if el in model.variants and model.variants[el][1] == base:
self.add(stat, model.variants[el][0], id, sentence)
if (el in model.variants and
model.variants[el][1] == base):
self.add(stat, model.variants[el][0], id,
sentence)
self.inc(stat, model.variants[el][0])
if self.verbose:
print("Variant %s, category %s" % (el,
......
Markdown is supported
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