Skip to content

Commit

Permalink
hfst
Browse files Browse the repository at this point in the history
  • Loading branch information
Trondtr committed Feb 3, 2025
1 parent 2dac3fd commit 6598cb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions devtools/verb_minip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GTLANGS=$(echo $GTLANGS)

PATTERN=$1
L_FILE="in.txt"
cut -d '!' -f1 src/fst/stems/verbs.lexc | egrep $PATTERN | tr '+' ':' | cut -d ':' -f1>$L_FILE
cut -d '!' -f1 src/fst/morphology/stems/verbs.lexc | egrep $PATTERN | tr '+' ':' | cut -d ':' -f1>$L_FILE

P_FILE="test/data/testverbprefix.txt"
# S_FILE="test/data/testverbsuffix.txt" # todo: suffix
Expand All @@ -22,9 +22,9 @@ for lemma in $(cat $L_FILE);
do
for prefix in $(cat $P_FILE) ; # and suffix in $(cat $S_FILE);
do
# echo "$prefix)${lemma}" | $LOOKUP $GTLANGS/lang-chr/src/generator-gt-norm.xfst # xfst
echo "${prefix}${lemma}+Prs" | $HLOOKUP $GTLANGS/lang-chr/src/generator-gt-norm.hfstol # hfst
# echo "${prefix}${lemma}${suffix}" | $HLOOKUP $GTLANGS/lang-chr/src/generator-gt-norm.hfstol # hfst
# echo "$prefix)${lemma}" | $LOOKUP $GTLANGS/lang-chr/src/fst/generator-gt-norm.xfst # xfst
echo "${prefix}${lemma}+Prs" | $HLOOKUP $GTLANGS/lang-chr/src/fst/generator-gt-norm.hfstol # hfst
# echo "${prefix}${lemma}${suffix}" | $HLOOKUP $GTLANGS/lang-chr/src/fst/generator-gt-norm.hfstol # hfst
done
rm -f $L_FILE
done
Expand Down

0 comments on commit 6598cb3

Please sign in to comment.