giellalt / lang-fkv

Finite state and Constraint Grammar based analysers and proofing tools, and language resources for the Kven Finnish language
https://giellalt.uit.no
GNU Lesser General Public License v3.0
2 stars 0 forks source link

Gemination works in fst but not in twolc-test and vice versa. ( #9

Open albbas opened 5 years ago

albbas commented 5 years ago

This issue was created automatically with bugzilla2github

Bugzilla Bug 2540

Date: 2019-02-12T09:49:08+01:00 From: Thomas Brevik Kjærstad <> To: Trond Trosterud <> CC: sjur.n.moshagen, thomas

Last updated: 2019-02-12T10:00:20+01:00

albbas commented 5 years ago

Comment 13134

Date: 2019-02-12 09:49:08 +0100 From: Thomas Brevik Kjærstad <>

To repeat:

echo flaku+N+Pl+Gen|lookup -q src/generator-gt-norm-dial_Por.xfst flaku+N+Pl+Gen flakkuin

But twolc test gives:

flak0u>i2>n flakku>i>n f l a k 0:k u

i2:i

n REJECTED: "Gemination 0:k" in nonfinal state 139

Then I change rule "Gemination 0:k" from [.#.|#:] Cns: Vow:+ k _ u %> [:u|:i (%> n) # ] ; to [.#.|#:] Cns: Vow:+ k _ u %> [:u|:i (%> n) .#. ] ;

and then the opposite happens: Twolc test works, but the fst test fails.

We definitely want to give priority to the fst, but still it is a bit uncomfortable that the test fails.

albbas commented 5 years ago

Comment 13135

Date: 2019-02-12 10:00:20 +0100 From: Trond Trosterud <>

Both xfst and hfst work, and we talk about Por (it works for all hufkv): echo flaku+N+Pl+Gen|hfst-lookup -q src/generator-gt-norm-dial_Por.hfstol flaku+N+Pl+Gen flakkuin 0.000000

Fixing something that works is of course not our top priority, but the misbehaviour may conceal other errors.