Project:
apertium
unhammer
-
Plain Text,
pasted
on Dec 3:
|
|
# Get the language pair and compile:
$ svn co https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-nn-nb
$ sh autogen.sh
$ make
# Test cases, as the java version does them:
$ echo 'kaffekaffe' | lt-proc-j -w -e nb-nn.automorf.bin
^kaffekaffe/kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind>$
$ echo 'kaffekaffekaffe' | lt-proc-j -w -e nb-nn.automorf.bin
^kaffekaffekaffe/kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind>$
$ echo 'kaffekaffekaffekaffe' | lt-proc-j -w -e nb-nn.automorf.bin
^kaffekaffekaffekaffe/kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind>$
$ echo 'kaffekaffekaffekaffekaffe' | lt-proc-j -w -e nb-nn.automorf.bin
^kaffekaffekaffekaffekaffe/kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind>$
$ echo 'kaffekaffekaffekaffekaffekaffe' | lt-proc-j -w -e nb-nn.automorf.bin
^kaffekaffekaffekaffekaffekaffe/*kaffekaffekaffekaffekaffekaffe$
|
|
Create a new paste based on this one
Comments:
posted by
unhammer
on Dec 3
# 'straffe' (with the -e) has the CompoundOnlyLSymbol, so can only appear as a left-part, can never end the compound:
$ echo 'straffekaffe' | lt-proc-j -w -e nb-nn.automorf.bin
^straffekaffe/straff<n><m><sg><ind><cmp>+kaffe<n><m><sg><ind>$
$ echo 'kaffestraffe' | lt-proc-j -w -e nb-nn.automorf.bin
^kaffestraffe/*kaffestraffe$
$ echo 'kaffestraff' | lt-proc-j -w -e nb-nn.automorf.bin
^kaffestraff/kaffe<n><m><sg><ind><cmp>+straff<n><m><sg><ind>$
reply
posted by
unhammer
on Dec 3
# 'straffen' is CompoundR, but has no L symbol, so can only be the last part:
$ echo 'straffenkaffe' | lt-proc-j -w -e nb-nn.automorf.bin
^straffenkaffe/*straffenkaffe$
$ echo 'kaffestraffen' | lt-proc-j -w -e nb-nn.automorf.bin
^kaffestraffen/kaffe<n><m><sg><ind><cmp>+straff<n><m><sg><def>$
reply
posted by
unhammer
on Dec 15
$ echo Troms|lt-proc-j -w -e nb-nn.automorf.bin
^Troms/trom<n><nt><sg><ind><gen>/trom<n><nt><pl><ind><gen>/trom<n><nt><sg><ind><gen>/trom<n><nt><pl><ind><gen>/Troms<np><top>$
reply