Useful Commands
Here we add useful commands.
MT commands
echo "Nu lea." | apertium -d . sme-smn
The program actually goes through 9 steps
In order to see what goes on, we may stop on any of the 9 steps:
-
sme-smn-morph <=== full morphology
-
sme-smn-disam <=== morphological disambiguation
-
sme-smn-syntax <=== syntactical disambiguation
-
sme-smn-biltrans <=== includes bidix
-
sme-smn-lextor <=== lexical selection
-
sme-smn-chunker <=== t1x transfer rules
-
sme-smn-interchunk <=== t2x transfer rules
-
sme-smn-postchunk <=== tx3 transfer rules
-
sme-smn <=== full MT
-
sme-smn-dgen <=== debugging-generation
- sme-smn-debug <=== debugging
We thus write echo "Nu lea." |apertium -d . sme-smn-morph
echo "Nu lea." | apertium -d . sme-smn-morph | tr ' ' '\n'
The regression test
(Regression tests are tests ensuring things do not get worse).
To run the tests, write:
t/update-latest
The number at the bottom indicates the number success/test.
To add tests, go to these pages, click "edit" and format as for the other sentences:
- Pending tests (just add tests here)
- Regression tests (Add tests that succeed here)
Cf. also the documentation.
Morphological analysis and generation
How to use the MT analysers and generators
Analyse North Saami: echo ja|hfst-proc -a sme-smn.automorf.hfst ^ja/ja<cnjcoo>$ Generate North Saami: echo '^ja<cnjcoo>$'|hfst-proc -d sme-smn.autogen.hfst ja Analyse Inari Saami: echo já|hfst-proc -a smn-sme.automorf.hfst ^já/já<cnjcoo>$ Generate Inari Saami: echo '^já<cnjcoo>$'|hfst-proc -d sme-smn.autogen.hfst já