Difference between revisions of "Omorfi"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
<pre> |
<pre> |
||
$ svn co http://svn.gna.org/svn/omorfi/trunk omorfi |
$ svn co http://svn.gna.org/svn/omorfi/trunk omorfi |
||
$ cd omorfi |
$ cd omorfi/src |
||
$ wget http://xixona.dlsi.ua.es/~fran/wordlists/kotus-sanalista-1a.xml |
$ wget http://xixona.dlsi.ua.es/~fran/wordlists/kotus-sanalista-1a.xml |
||
$ wget http://xixona.dlsi.ua.es/~fran/wordlists/kotus-sanalista.sfstlex |
|||
</pre> |
</pre> |
||
Edit the <code>omorfi/configure.ac</code> file and comment out the line <code>AC_CONFIG_AUX_DIR([config-aux])</code>. |
Edit the <code>omorfi/configure.ac</code> file and comment out the line <code>AC_CONFIG_AUX_DIR([config-aux])</code>. Then edit the file <code>omorfi/src/Makefile.am</code> and comment out the line <code>KOTUS_LEX = kotus-sanalista.sfstlex</code> (or make will overwrite the ones you just downloaded). |
||
<pre> |
<pre> |
||
Line 30: | Line 31: | ||
$ make |
$ make |
||
</pre> |
</pre> |
||
This could take 10--20 minutes. |
|||
==Usage== |
==Usage== |
Revision as of 22:37, 7 June 2008
OMorFi (Open Morphology of Finnish) is a computational morphology of Finnish written using SFST (or rather the Helsinki HFST variant).
Requirements
You will need SFST installed, you can follow the instructions on the SFST page.
Download
You need to have both the morphology files (OMorFi) and the wordlist (Kotus sanalista). The SVN version of kotus-sanalista
can be downloaded from here, but requires Java and Saxon to compile the list, so a pre-compiled version will be used here.
$ svn co http://svn.gna.org/svn/omorfi/trunk omorfi $ cd omorfi/src $ wget http://xixona.dlsi.ua.es/~fran/wordlists/kotus-sanalista-1a.xml $ wget http://xixona.dlsi.ua.es/~fran/wordlists/kotus-sanalista.sfstlex
Edit the omorfi/configure.ac
file and comment out the line AC_CONFIG_AUX_DIR([config-aux])
. Then edit the file omorfi/src/Makefile.am
and comment out the line KOTUS_LEX = kotus-sanalista.sfstlex
(or make will overwrite the ones you just downloaded).
$ aclocal $ automake -a $ autoconf $ ./configure --with-kotus-sanalista=kotus-sanalista-1a.xml
Compilation
$ make
This could take 10--20 minutes.