From 08affa2cc7df5bda8ebffea38a36bb23fc91dbc4 Mon Sep 17 00:00:00 2001 From: "antti.arppe@iki.fi" Date: Wed, 6 Mar 2024 02:14:02 -0700 Subject: [PATCH] Added generation of morpheme boundary on both sides of the inflectional slot; fixed a typo in a rewrite rule; added simplification of immediately adjacent boundary markers of the same kind. --- src/fst/verb_lexicon.xfscript.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/fst/verb_lexicon.xfscript.in b/src/fst/verb_lexicon.xfscript.in index 0f52000..7a534d1 100644 --- a/src/fst/verb_lexicon.xfscript.in +++ b/src/fst/verb_lexicon.xfscript.in @@ -96,9 +96,9 @@ read regex [Stems PostverbalAffixes] .o. MarkPrefixes .o. InsInner .o. InsMiddle .o. InsOuter .o. LInnerPrefixAllomorphs .o. RequireOuterAllomorphs .o. - "." -> "." InnerAffixes , - "_" -> "_" MiddleAffixes , - "=" -> "=" OuterAffixes; + "." -> "." InnerAffixes "@P.PREFIX.INNER@" , + "_" -> "_" MiddleAffixes "@P.PREFIX.MIDDLE@" , + "=" -> "=" OuterAffixes "@P.PREFIX.OUTER@" ; define WordForms; # Rewrite rule for resurrecting the prefix boundary markers @@ -108,7 +108,8 @@ define ShowBoundaries [ "@P.PREFIX.INNER@" -> "." , "@P.PREFIX.OUTER@" -> "=" ]; -define SimplifyBoundaries regex [ "=" "_" "." -> "=" +define SimplifyBoundaries [ [ "=" "=" -> "=" , "_" "_" -> "_" , "." "." -> "." ] +.o. "=" "_" "." -> "=" .o. "_" "." -> "_" .o. "=" "_" -> "=" .o. [ "=" | "_" | "." ] -> 0 || .#. _