apertium / apertium-chv

Apertium linguistic data for Chuvash
GNU General Public License v3.0
2 stars 0 forks source link

<abil> #21

Open hectoralos opened 5 years ago

hectoralos commented 5 years ago

<abil> gives many problems. Here are some relevant cases:

$ echo "кил<v><iv><abil><pres><p1><sg>" | hfst-lookup .deps/chv.LR.lexc.hfst 2>/dev/null
кил<v><iv><abil><pres><p1><sg>  кил>{A}й>{A}т>{Ă}п  0,000000
$ aq-morftest -ci v_кил_del.yaml | grep "<abil><pres><p1><sg>"
[FAIL] кил<v><iv><abil><pres><p1><sg> => missing results: килеетӗп
[FAIL] кил<v><iv><abil><pres><p1><sg> => unexpected results: килейетӗп

$ echo "кала<v><tv><abil><pres><p1><sg>" | hfst-lookup .deps/chv.LR.lexc.hfst 2>/dev/null
кала<v><tv><abil><pres><p1><sg> кала>{A}й>{A}т>{Ă}п 0,000000
$ aq-morftest -ci v_кала_del.yaml | grep "<abil><pres><p1><sg>"
[FAIL] кала<v><tv><abil><pres><p1><sg> => missing results: калаятӑп
[FAIL] кала<v><tv><abil><pres><p1><sg> => unexpected results: калайатӑп, калааятӑп

echo "ҫи<v><tv><abil><pres><p1><sg>" | hfst-lookup .deps/chv.LR.lexc.hfst 2>/dev/null
ҫи<v><tv><abil><pres><p1><sg>   ҫи{й}>{A}й>{A}т>{Ă}п    0,000000
$ aq-morftest -ci v_ҫи_del.yaml | grep "<abil><pres><p1><sg>"
[FAIL] ҫи<v><tv><abil><pres><p1><sg> => missing results: ҫийеетӗп
[FAIL] ҫи<v><tv><abil><pres><p1><sg> => unexpected results: ҫиейетӗп

$ echo "ту<v><tv><abil><pres><p1><sg>" | hfst-lookup .deps/chv.LR.lexc.hfst 2>/dev/null
ту<v><tv><abil><pres><p1><sg>   ту{в}>{A}й>{A}т>{Ă}п    0,000000
$ aq-morftest -ci v_ту_del.yaml | grep "<abil><pres><p1><sg>"
[FAIL] ту<v><tv><abil><pres><p1><sg> => missing results: тӑвaятӑп
[FAIL] ту<v><tv><abil><pres><p1><sg> => unexpected results: тӑвайатӑп, тӑваятӑп

$ echo "выля<v><tv><abil><pres><p1><sg>" | hfst-lookup .deps/chv.LR.lexc.hfst 2>/dev/null
выля<v><tv><abil><pres><p1><sg> выля>{A}й>{A}т>{Ă}п 0,000000
$ aq-morftest -ci v_выля_del.yaml | grep "<abil><pres><p1><sg>"
[FAIL] выля<v><tv><abil><pres><p1><sg> => missing results: выляятӑп
[FAIL] выля<v><tv><abil><pres><p1><sg> => unexpected results: выляаятӑп, выляайатӑп
ftyers commented 5 years ago

This one makes sense:

$ echo "кил<v><iv><abil><pres><p1><sg>" | hfst-lookup .deps/chv.LR.hfst 
кил<v><iv><abil><pres><p1><sg>  килеетӗп    0,000000

I don't quite get why we need the -й- here? But now it works

$ echo "ҫи<v><tv><abil><pres><p1><sg>" | hfst-lookup .deps/chv.LR.hfst 
ҫи<v><tv><abil><pres><p1><sg>   ҫийеетӗп    0,000000

I don't get the rule for выляятӑп, could you give the pairstring alignment?

в ы л {й}:0 я:я >:> {A}:0 й:0 >:> {A}:я т > {Ă}:ӑ п

or

в ы л {й}:0 я:0 >:> {A}:я й:0 >:> {A}:я т > {Ă}:ӑ п

or something else?

hectoralos commented 5 years ago

Sorry about ҫийеетӗп. You are right: й does not make sense here. Must be ҫиеетӗп.

About выля I got lost too when I saw it in Vinogradov's orthography dictionnary.

выля>{A}й>{A}т>{Ă}п
в ы л {й}:й я:0 > {A}:а й > {A}:а т > {Ă}:ӑ п
в ы л й > а й > а т > ӑ п
выляятӑп

Compare with:

кала>{A}й>{A}т>{Ă}п
к а л а:0 > {A}:а й > {A}:а т > {Ă}:ӑ п
калаятӑп