Commit 3d5fd78acf0c7e8844f54b2c9fed0cf61692cd8e
1 parent
54fa0935
poprawka do importu atrybutów
Showing
1 changed file
with
12 additions
and
13 deletions
dictionary/management/commands/import_data.py
... | ... | @@ -37,30 +37,30 @@ ATTRS = { |
37 | 37 | u'przechodniość': ( |
38 | 38 | (('v', 'pred'), None), |
39 | 39 | ( |
40 | - ('iT', u''), | |
41 | - ('qT', u''), | |
42 | - ('T', u''), | |
40 | + ('iT', u'nieprzechodni'), | |
41 | + ('qT', u'quasi-przechodni'), | |
42 | + ('T', u'przechodni'), | |
43 | 43 | ), |
44 | 44 | ('przechodniosc', lambda x: x), |
45 | 45 | ), |
46 | 46 | u'aspekt': ( |
47 | 47 | (('v', 'pred', 'ger', 'pact', 'ppas', 'appas'), None), |
48 | 48 | ( |
49 | - ('dk', u''), | |
50 | - ('ndk', u''), | |
51 | - ('ndk/dk', u''), | |
52 | - ('dk/ndk', u''), | |
53 | - ('ndk/(dk)', u''), | |
54 | - ('dk/(ndk)', u''), | |
49 | + ('dk', u'dk'), | |
50 | + ('ndk', u'ndk'), | |
51 | + ('ndk/dk', u'ndk/dk'), | |
52 | + ('dk/ndk', u'dk/ndk'), | |
53 | + ('ndk/(dk)', u'ndk/(dk)'), | |
54 | + ('dk/(ndk)', u'dk/(ndk)'), | |
55 | 55 | ), |
56 | 56 | ('aspekt', lambda x: x), |
57 | 57 | ), |
58 | 58 | u'właściwy': ( |
59 | 59 | (('v', 'pred'), None), |
60 | 60 | ( |
61 | - ('Q', u''), | |
62 | - ('(Q)', u''), | |
63 | - ('', u''), | |
61 | + ('Q', u'niewłaściwy'), | |
62 | + ('(Q)', u'właściwy/niewłaściwy'), | |
63 | + ('', u'właściwy'), | |
64 | 64 | ), |
65 | 65 | ('właściwy', lambda x: x), |
66 | 66 | ), |
... | ... | @@ -418,7 +418,6 @@ class ImportData(object): |
418 | 418 | "from odsylacze o " |
419 | 419 | "join leksemy l on o.nrod = l.nr " |
420 | 420 | "where typods in ('verger', 'verppas', 'verpact')") |
421 | - # TODO zrobić zapytanie które weźmie gotowe dane z sqlite | |
422 | 421 | for row in result: |
423 | 422 | yield LexemeAV( |
424 | 423 | lexeme_id=row['nrdo'], attribute_value_id=aspect_vals[row['aspekt']]) |
... | ... |