Commit ba0cb43f576a036dc674861ad0e5f2c25cb50ea5
1 parent
a19333da
code cleanup: less importer output
Showing
3 changed files
with
7 additions
and
9 deletions
entries/phrase_descriptions/descriptions.py
... | ... | @@ -343,7 +343,6 @@ def make_phraseologisms(phrase, function, negativity, attrs={}, controller=None, |
343 | 343 | feats = ['adj', attrs['num'], attrs['case'], attrs['gend'], 'pos'] |
344 | 344 | return ['‹{}›'.format(get_form('jakiś', feats)[0])] |
345 | 345 | if ptype in (LexAdjP, LexPPasP, LexPActP): |
346 | - print('****************', phrase, controller, controller_grammar) | |
347 | 346 | # np. uczynić coś *jakimś* / kobietę *jakąś* |
348 | 347 | # w składni nie będzie controller_grammar |
349 | 348 | #TODO test? (***) |
... | ... |
importer/RealizationDescriptions.py
... | ... | @@ -498,7 +498,7 @@ def generate_phrases(function, negativity, phrase, lemma, is_predef, head_gender |
498 | 498 | phrase = NP(Case('gen'), dummy_id) |
499 | 499 | # i przetwarzanie dalej jako np |
500 | 500 | |
501 | - print('PHRASE TYPE:', phrase_type, 'LEMMA:', processed_lemma, 'MODIFICATION:', mod, 'FUNCTION:', function) | |
501 | + #print('PHRASE TYPE:', phrase_type, 'LEMMA:', processed_lemma, 'MODIFICATION:', mod, 'FUNCTION:', function) | |
502 | 502 | words = Words('concat', 'xor', [processed_lemma]) |
503 | 503 | |
504 | 504 | # TODO |
... | ... | @@ -705,9 +705,9 @@ def get_phrase_description(subentry, argument, position, phrase, controller_gram |
705 | 705 | # subentry, argument: DB model objects |
706 | 706 | # schema, phrase: importer objects |
707 | 707 | def get_phrase_description2(subentry, argument, position, phrase, controller_grammar=None): |
708 | - print() | |
709 | - print(argument) | |
710 | - print(phrase) | |
708 | + #print() | |
709 | + #print(argument) | |
710 | + #print(phrase) | |
711 | 711 | gender, number = None, None |
712 | 712 | function = position._function._value if position._function else None |
713 | 713 | control = None |
... | ... | @@ -945,7 +945,7 @@ def get_argument_realisation_priority(ar, entry_pos): |
945 | 945 | |
946 | 946 | # jeśli nie ma nic na początku, a jest np(dat), to przesuwamy na początek |
947 | 947 | def rerank(ars): |
948 | - print(ars) | |
948 | + #print(ars) | |
949 | 949 | before, after, np_dat = [], [], [] |
950 | 950 | for rank, fallback, ar in ars: |
951 | 951 | if rank[0] == 0: |
... | ... | @@ -1033,7 +1033,7 @@ WINIEN = ('powinien', 'winien',) |
1033 | 1033 | def get_realisation_description(realisation, subentry, aspect): |
1034 | 1034 | entry = subentry.entry |
1035 | 1035 | ars = [(get_argument_realisation_priority(ar, entry.pos.tag), fallback(ar._description), ar) for ar in realisation._argument_realizations] |
1036 | - print([(p1, p2, ar._description) for p1, p2, ar in ars]) | |
1036 | + #print([(p1, p2, ar._description) for p1, p2, ar in ars]) | |
1037 | 1037 | try: |
1038 | 1038 | ars = sorted(ars) |
1039 | 1039 | except: |
... | ... | @@ -1091,7 +1091,6 @@ def get_realisation_description(realisation, subentry, aspect): |
1091 | 1091 | # bokser sparuje — imperf nienotowane w Morfeuszu |
1092 | 1092 | entry_form = 'sparuje' |
1093 | 1093 | else: |
1094 | - print(entry_base, ['fin', subj_num, 'ter', 'imperf']) | |
1095 | 1094 | entry_form = get_form(entry_base, ['fin', subj_num, 'ter', 'imperf'])[0] |
1096 | 1095 | else: |
1097 | 1096 | # dokonane: praet (cz. przeszły) |
... | ... |
importer/Realizations.py
... | ... | @@ -142,7 +142,7 @@ class FrameRealization: |
142 | 142 | # ar.store(subentry, frame, schema, alternation, controller_grammar=controller_grammar) |
143 | 143 | description = get_realisation_description(self, subentry, self._schema.getAspect()) |
144 | 144 | #print('**************************', controller_grammar) |
145 | - print('================================', description) | |
145 | + #print('================================', description) | |
146 | 146 | RealisationDescription.objects.create(frame=frame, |
147 | 147 | schema=schema, |
148 | 148 | alternation=alternation, |
... | ... |