giellalt / lang-sme

Finite state and Constraint Grammar based analysers and proofing tools, and language resources for the Northern Sami language
https://giellalt.uit.no
GNU General Public License v3.0
6 stars 1 forks source link

brn abbr is accepted by usme, not kap ( #332

Closed albbas closed 11 years ago

albbas commented 11 years ago

This issue was created automatically with bugzilla2github

Bugzilla Bug 1479

Date: 2012-10-23T15:15:57+02:00 From: Børre Gaup <> To: Thomas Omma <> CC: berit.a.baal, berit.nystad.eskonsipo, lene.antonsen, ritva.nystad, sjur.n.moshagen, trond.trosterud

Last updated: 2012-10-24T08:54:17+02:00

albbas commented 11 years ago

Comment 7163

Date: 2012-10-23 15:15:57 +0200 From: Børre Gaup <>

I changed kap from ab-dot-noun to ab-noun, then compiled sme using these commands: make GTLANG=sme make GTLANG=sme abbr

This is the result when running them through usme

gt $ echo kap | usme 0%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>100% kap kap +?

gt $ echo kap. | usme 0%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>100% kap. kap+N+ABBR+Nom kap. kap+N+ABBR+Gen kap. kap+N+ABBR+Attr kap. kap+N+ABBR+Acc

gt $ echo bnr. | usme 0%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>100% bnr. bnr+N+ABBR+Nom bnr. bnr+N+ABBR+Gen bnr. bnr+N+ABBR+Attr bnr. bnr+N+ABBR+Acc

gt $ echo bnr | usme 0%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>100% bnr bnr+N+ABBR+Nom bnr bnr+N+ABBR+Gen bnr bnr+N+ABBR+Attr bnr bnr+N+ABBR+Acc

bnr is accepted as an abbr with and without ., not so with kap

These are the entries in abbr-sme-lex.txt

kap is kap ab-noun ; ! bnr is bnr ab-noun ; !

albbas commented 11 years ago

Comment 7164

Date: 2012-10-23 16:49:15 +0200 From: Lene Antonsen <>

These are the entries in abbr-sme-lex.txt

kap is kap ab-noun ; ! bnr is bnr ab-noun ; !

There is also:

bnr ab-dot-noun ; (but not for kap)

albbas commented 11 years ago

Comment 7165

Date: 2012-10-24 00:36:41 +0200 From: Børre Gaup <>

(In reply to comment #1)

These are the entries in abbr-sme-lex.txt

kap is kap ab-noun ; ! bnr is bnr ab-noun ; !

There is also:

bnr ab-dot-noun ; (but not for kap)

Ok, didn't know that. But the question still remains, why are two entries that should behave the same not doing it?

albbas commented 11 years ago

Comment 7167

Date: 2012-10-24 07:37:32 +0200 From: Lene Antonsen <>

gt$ usme kat kap+N+ABBR+Nom kat kap+N+ABBR+Gen kat kap+N+ABBR+Attr kat kap+N+ABBR+Acc

Årsaken er at p > t, hvis ikke p9

dette burde fungere:

kap9:kat ab-noun ;

albbas commented 11 years ago

Comment 7168

Date: 2012-10-24 07:43:13 +0200 From: Lene Antonsen <>

Slik, mener jeg:

kap:kap9 ab-noun ;

dette gjelder også denne:

Dep Dep +?

men ikke dem med konsoant foran p

albbas commented 11 years ago

Comment 7169

Date: 2012-10-24 07:53:39 +0200 From: Lene Antonsen <>

Har testa hele abbr-fila ved å generere alle ab-noun. Dette viser at det er tilsvarende problem med disse:

ot. meld+N+ABBR+Nom ot. meld+N+ABBR+Nom ot. mel ot. meld+N+ABBR+Nom ot. meld.

ot.meld+N+ABBR+Nom ot.meld+N+ABBR+Nom ot.mel ot.meld+N+ABBR+Nom ot.meld.

ot.prop+N+ABBR+Nom ot.prop+N+ABBR+Nom ot.prot ot.prop+N+ABBR+Nom ot.prop.

ot. prop+N+ABBR+Nom ot. prop+N+ABBR+Nom ot. prot ot. prop+N+ABBR+Nom ot. prop.

albbas commented 11 years ago

Comment 7170

Date: 2012-10-24 08:54:17 +0200 From: Thomas Omma <>

gt $ usmeNorm 0%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>100% ot. meld ot. meld ot. meld+N+ABBR+Acc ot. meld ot. meld+N+ABBR+Attr ot. meld ot. meld+N+ABBR+Gen ot. meld ot. meld+N+ABBR+Nom

ot.prop ot.prop ot.prop+N+ABBR+Acc ot.prop ot.prop+N+ABBR+Attr ot.prop ot.prop+N+ABBR+Gen ot.prop ot.prop+N+ABBR+Nom

Dep Dep Dep+N+ABBR+Acc Dep Dep+N+ABBR+Attr Dep Dep+N+ABBR+Gen Dep Dep+N+ABBR+Nom

kap kap kap+N+ABBR+Acc kap kap+N+ABBR+Attr kap kap+N+ABBR+Gen kap kap+N+ABBR+Nom

^C gt $ svn ci -m "some 9:s, Bug1479" sme/src Sending sme/src/abbr-sme-lex.txt Transmitting file data . Committed revision 64401.