Skip to content
Snippets Groups Projects
Commit f947c9a9 authored by Kasia Krasnowska's avatar Kasia Krasnowska
Browse files

part -> acc, gen only when negated

parent 4e449dbd
Branches
No related merge requests found
......@@ -106,6 +106,7 @@ STR_CASE = {
None : { '_' : 'acc', 'aff' : 'acc', 'neg' : 'gen' },
}
AGR_CASE = { 'subj' : 'nom', 'obj' : 'acc', 'head' : 'nom', None : 'nom' }
PART_CASE = { '_' : 'acc', 'aff' : 'acc', 'neg' : 'gen' },
PRED_CASE = {
'subj' : { '_' : 'nom', 'aff' : 'nom', 'neg' : 'nom' },
'obj' : { '_' : 'acc', 'aff' : 'acc', 'neg' : 'gen' },
......@@ -116,9 +117,8 @@ def correct_case(case, function, negativity='_'):
return STR_CASE[function][negativity]
if case == 'agr':
return AGR_CASE[function]
# TODO both gen and acc?
if case == 'part':
return 'gen'
return PART_CASE[negativity]
if case == 'pred':
return PRED_CASE[function][negativity]
if case == 'postp':
......
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