Commit 968cb280121e1d1b41fd0c28df140f3ec93fb459
1 parent
8c5a757c
Poprawki -- agr przy niejednoznacznym przypadku nadrzędnika, ręczne dodawanie lematów
Showing
2 changed files
with
4 additions
and
4 deletions
semantics/phraseology_generator.py
... | ... | @@ -93,9 +93,9 @@ def get_case(attribute, is_subj, negativity, reference=None): |
93 | 93 | _, tag = reference |
94 | 94 | base = tag.split(':')[0] |
95 | 95 | if base == u'siebie': |
96 | - case = [tag.split(':')[1]] | |
96 | + case = tag.split(':')[1].split('.') | |
97 | 97 | else: |
98 | - case = [tag.split(':')[2]] | |
98 | + case = tag.split(':')[2].split('.') | |
99 | 99 | elif case == u'agr' and reference is None: |
100 | 100 | case = [u'nom'] |
101 | 101 | else: |
... | ... |
semantics/static/js/semantics_view.js
... | ... | @@ -438,7 +438,7 @@ function createMeaningsManually() { |
438 | 438 | } |
439 | 439 | } |
440 | 440 | |
441 | - addPhraseologicalUnit(base, f.glossa, f.relation, f.to); | |
441 | + addPhraseologicalUnit(base, f.glossa, f.relation, f.synset); | |
442 | 442 | |
443 | 443 | saveFrames(); |
444 | 444 | displayFrames(); |
... | ... | @@ -462,7 +462,7 @@ function createMeaningsManually() { |
462 | 462 | e.preventDefault(); |
463 | 463 | if (parseInt(f.relation) != 2) { |
464 | 464 | $.prompt.removeState('state2'); |
465 | - $.prompt.addState('state2', {title: 'Miejsce w Słowosieci', html: getFormContent(f) + getRelation(f) + "w stosunku do:<br />" + getSynsets(f.context, part_of_speech), buttons: {Wstecz: -1, Zrezygnuj: 0, Zatwierdź: 1}, focus: 1, submit: submitSynsetSelection}, 'state11'); | |
465 | + $.prompt.addState('state2', {title: 'Miejsce w Słowosieci', html: getFormContent(f) + getRelation(f) + "w stosunku do:<br />" + getSynsets(f.context, part_of_speech), buttons: {Wstecz: -1, Zrezygnuj: 0, Zatwierdź: 1}, focus: 1, submit: submitSynsetSelection}, 'state1'); | |
466 | 466 | $.prompt.goToState('state2'); |
467 | 467 | } else { |
468 | 468 | options = [f.base]; |
... | ... |