Skip to content

Commit

Permalink
files for generating verb paradigms. NOTE: verb paradigms taken from …
Browse files Browse the repository at this point in the history
…crk, should be checked for possible differences in morphological paradigms cwd/crk.
  • Loading branch information
Trondtr committed May 8, 2024
1 parent 0e45715 commit f3a4cd3
Show file tree
Hide file tree
Showing 4 changed files with 705 additions and 0 deletions.
28 changes: 28 additions & 0 deletions devtools/verb_minipAITI.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# script to generate paradigms for generating word forms
# command, when you are in smn:
# sh devtools/verb_minip.sh 2SYLL_OD | less
# sh devtools/verb_minip.sh kihlođ


LOOKUP=$(echo $LOOKUP)
LOOKUP=$(echo $LOOKUP)
GTLANGS=$(echo $GTLANGS)


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

P_FILE="test/data/testverbparadigmAITI.txt"

for lemma in $(cat $L_FILE);
do
for form in $(cat $P_FILE);
do
# echo "${lemma}${form}" | $LOOKUP $GTLANGS/lang-cwd/src/fst/generator-gt-norm.xfst
echo "${lemma}${form}" | $HLOOKUP $GTLANGS/lang-cwd/src/fst/generator-gt-norm.hfstol
done
done

28 changes: 28 additions & 0 deletions devtools/verb_minipTA.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# script to generate paradigms for generating word forms
# command, when you are in smn:
# sh devtools/verb_minip.sh 2SYLL_OD | less
# sh devtools/verb_minip.sh kihlođ


LOOKUP=$(echo $LOOKUP)
HLOOKUP=$(echo $HLOOKUP)
GTLANGS=$(echo $GTLANGS)


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

P_FILE="test/data/testverbparadigmTA.txt"

for lemma in $(cat $L_FILE);
do
for form in $(cat $P_FILE);
do
# echo "${lemma}${form}" | $LOOKUP $GTLANGS/lang-cwd/src/fst/generator-gt-norm.xfst
echo "${lemma}${form}" | $HLOOKUP $GTLANGS/lang-cwd/src/fst/generator-gt-norm.hfstol
done
done

124 changes: 124 additions & 0 deletions test/data/testverbparadigmAITI.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
!!IMPERATIVE

+V+AI+Imp+Imm+2Sg
+V+AI+Imp+Imm+12Pl
+V+AI+Imp+Imm+2Pl
+V+AI+Imp+Del+2Sg
+V+AI+Imp+Del+12Pl
+V+AI+Imp+Del+2Pl


!!IND-PRESENT-TENSE

+V+AI+Ind+Prs+1Sg
+V+AI+Ind+Prs+2Sg
+V+AI+Ind+Prs+3Sg
+V+AI+Ind+Prs+1Pl
+V+AI+Ind+Prs+12Pl
+V+AI+Ind+Prs+2Pl
+V+AI+Ind+Prs+3Pl
+V+AI+Ind+Prs+4Sg/Pl
+V+AI+Ind+Prs+5Sg/Pl
+V+AI+Ind+Prs+X


!!IND-PAST-TENSE

+V+AI+Ind+Prt+1Sg
+V+AI+Ind+Prt+2Sg
+V+AI+Ind+Prt+3Sg
+V+AI+Ind+Prt+1Pl
+V+AI+Ind+Prt+12Pl
+V+AI+Ind+Prt+2Pl
+V+AI+Ind+Prt+3Pl
+V+AI+Ind+Prt+4Sg/Pl
+V+AI+Ind+Prt+5Sg/Pl
+V+AI+Ind+Prs+X


!!IND-FUTURE-DEFINITE-TENSE

+V+AI+Ind+Fut+Def+1Sg
+V+AI+Ind+Fut+Def+2Sg
+V+AI+Ind+Fut+Def+3Sg
+V+AI+Ind+Fut+Def+1Pl
+V+AI+Ind+Fut+Def+12Pl
+V+AI+Ind+Fut+Def+2Pl
+V+AI+Ind+Fut+Def+3Pl
+V+AI+Ind+Fut+Def+4Sg/Pl
+V+AI+Ind+Fut+Def+5Sg/Pl
+V+AI+Ind+Prs+X


!!IND-FUTURE-INTENTIONAL-TENSE

+V+AI+Ind+Fut+Int+1Sg
+V+AI+Ind+Fut+Int+2Sg
+V+AI+Ind+Fut+Int+3Sg
+V+A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