[developers] Morphology 2

Bart Cramer bart.cramer at gmail.com
Fri Sep 18 14:30:38 CEST 2009


Dear developers,

Not sure whether this mail turns out to be a request for help or a bug
report :)

In short, the symptoms are: the morphological rules can be flopped with the
rest of the grammar, but when the .tab file points to a morphological rule,
PET gives a warning (at load time) that that rule doesn't exist. In LKB, all
works fine.

More specific, I have the following code snippets:
(as you can see, I would like to do the regular morphology via the irregs
mapping as well)

=========================================
pet/flop.set

irregs-file := "lexicon_static.tab".

=========================================
pet/german_static.set

;; status values that marks rules
rule-status-values := rule.
lexrule-status-values := lex-rule.

;;
;; suppress results of regular morphology rules if irregular form exists
;;
irregular-forms-only.
lex-entries-can-fail.


=========================================
german_static.tdl

:begin :instance :status lex-rule.
:include "rules_lexical".
:include "rules_infl".
:end :instance.


=========================================
rules_infl.tdl

ir-verb-npd-pr-1-sg   :=
%suffix (bla bla)
lex-infl-rule-verb-npd & [ SYNSEM.LOCAL.CAT.HEAD infl-verb-npd-pr-1-sg ].


=========================================
lexicon_static.tab

"
stehe IR-VERB-NPD-PR-1-SG stehen
"
=========================================

The interesting thing is: it seems to flop well. The stderr shows:

(...) including `rules_infl.tdl'...(...)

Also, this is what is present in the .grm file:

[bcramer at malabo cheetah]$ strings german_static.grm | grep -i -C 3 ir-verb
$lex-v-scramble-3-231
$lex-v-scramble-3-312
$lex-v-scramble-3-321
$ir-verb-npd-pr-1-sg
$rel
$cvp
$vp-fin
--
lex-v-scramble-3-231
lex-v-scramble-3-312
lex-v-scramble-3-321
ir-verb-npd-pr-1-sg
vp-fin
vp-imp
vp-psp
--
xxxx7
suffix (bla bla)
stehe
IR-VERB-NPD-PR-1-SG
stehen

And this is what cheap says, eventually:

[bcramer at malabo cheetah]$ echo ich stehe | cheap -t german_static
reading `pet/german_static.set'... including `pet/cm.set'...
loading `german_static.grm' (Cheetah (0.13)) [ disabling unification
quickcheck ] [ disabling subsumption quickcheck ] Ignoring entry with
unknown rule `ir-verb-npd-pr-1-sg' in irregular forms

3569 types in 0.65 s
no lexicon entries for:
        "stehe"

Did we forget any important setting? Or does this really look like a bug?

Bart.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.delph-in.net/archives/developers/attachments/20090918/6a3cd677/attachment.html>


More information about the developers mailing list