Commit 8bccc5d76a83f53d24056c2eb2840f1b1192885d
1 parent
d272766c
drobne poprawki
Showing
1 changed file
with
1 additions
and
1 deletions
semantics/phraseology_generator.py
| @@ -308,7 +308,7 @@ def get_numps(cases, numerals, nouns, atr): | @@ -308,7 +308,7 @@ def get_numps(cases, numerals, nouns, atr): | ||
| 308 | for (num_orth, num_tag) in nums: | 308 | for (num_orth, num_tag) in nums: |
| 309 | rec = num_tag.split(':')[4] | 309 | rec = num_tag.split(':')[4] |
| 310 | for noun in nouns: | 310 | for noun in nouns: |
| 311 | - options = [(orth, tag) for (orth, base, tag, _, _) in MORFEUSZ2.generate(noun) if 'subst:' in interp.getTag(MORFEUSZ2)] | 311 | + options = [(orth, tag) for (orth, base, tag, _, _) in MORFEUSZ2.generate(noun) if 'subst:' in tag] |
| 312 | filtered = [] | 312 | filtered = [] |
| 313 | for option in options: | 313 | for option in options: |
| 314 | (orth, tag) = option | 314 | (orth, tag) = option |