Difference between revisions of "Matxin"
Jump to navigation
Jump to search
(New page: '''Matxin''' is a free software machine translation engine related to Apertium. It allows for deeper transfer than can be found in Apertium. ==Prerequisites== * libcfg+ — http:...) |
|||
Line 9: | Line 9: | ||
* FreeLing — https://lafarga.cpl.upc.edu/frs/download.php/90/FreeLing-1.5.tar.gz |
* FreeLing — https://lafarga.cpl.upc.edu/frs/download.php/90/FreeLing-1.5.tar.gz |
||
:If you're installing into a prefix, you'll need to set two environment variables: CPPFLAGS=-I<prefix>/include LDFLAGS=-L<prefix>/lib ./configure --prefix=<prefix> |
:If you're installing into a prefix, you'll need to set two environment variables: CPPFLAGS=-I<prefix>/include LDFLAGS=-L<prefix>/lib ./configure --prefix=<prefix> |
||
* [[lttoolbox]] |
* [[lttoolbox]] (version 2.0) |
||
==Building== |
==Building== |
||
Line 20: | Line 20: | ||
</pre> |
</pre> |
||
<pre> |
|||
$ aclocal; automake -a; autoconf |
$ aclocal; automake -a; autoconf |
||
$ LTTOOLBOX_DIR=/home/fran/svnroot/local/unstable/ LDFLAGS="-L/home/fran/local/lib -L/usr/lib" CPPFLAGS="-I/home/fran/local/include" ./configure --prefix=/home/fran/local/ |
$ LTTOOLBOX_DIR=/home/fran/svnroot/local/unstable/ LDFLAGS="-L/home/fran/local/lib -L/usr/lib" CPPFLAGS="-I/home/fran/local/include" ./configure --prefix=/home/fran/local/ |
||
</pre> |
|||
You will probably need to fix a few things in the file: <code>src/Makefile</code> to get it to build, for example add: |
You will probably need to fix a few things in the file: <code>src/Makefile</code> to get it to build, for example add: |
||
<pre> |
|||
DEFAULT_INCLUDES = -I. -I$(srcdir) -I/usr/include/libxml2 |
DEFAULT_INCLUDES = -I. -I$(srcdir) -I/usr/include/libxml2 |
||
CPPFLAGS = -I/home/fran/svnroot/local/unstable//include/lttoolbox-2.0 -I/home/fran/local/include |
CPPFLAGS = -I/home/fran/svnroot/local/unstable//include/lttoolbox-2.0 -I/home/fran/local/include |
||
</pre> |
|||
and comment out the deformatters in the Makefile.am as they don't build properly. |
and comment out the deformatters in the Makefile.am as they don't build properly. |
||
Line 33: | Line 37: | ||
<pre> |
<pre> |
||
$ export MATXIN_DIR= |
$ export MATXIN_DIR=<prefix> |
||
$ echo "Esto es una prueba" | ./Analyzer -f $MATXIN_DIR/share/matxin/config.cfg | ./LT -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 1 -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_prep -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 2 -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_verb -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 3 -f $MATXIN_DIR/share/matxin/config.cfg | ./SG_inter -f $MATXIN_DIR/share/matxin/config.cfg | ./SG_intra -f $MATXIN_DIR/share/matxin/config.cfg | ./MG -f $MATXIN_DIR/share/matxin/config.cfg | ./reFormat |
$ echo "Esto es una prueba" | ./Analyzer -f $MATXIN_DIR/share/matxin/config.cfg | ./LT -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 1 -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_prep -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 2 -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_verb -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 3 -f $MATXIN_DIR/share/matxin/config.cfg | ./SG_inter -f $MATXIN_DIR/share/matxin/config.cfg | ./SG_intra -f $MATXIN_DIR/share/matxin/config.cfg | ./MG -f $MATXIN_DIR/share/matxin/config.cfg | ./reFormat |
||
Revision as of 17:50, 23 February 2008
Matxin is a free software machine translation engine related to Apertium. It allows for deeper transfer than can be found in Apertium.
Prerequisites
- libcfg+ — http://platon.sk/upload/_projects/00003/libcfg+-0.6.2.tar.gz
- BerkleyDB — sudo apt-get install libdb4.6++-dev
- libomlet — https://lafarga.cpl.upc.edu/frs/download.php/130/libomlet-0.97.tar.gz
- libfries — https://lafarga.cpl.upc.edu/frs/download.php/129/libfries-0.95.tar.gz
- FreeLing — https://lafarga.cpl.upc.edu/frs/download.php/90/FreeLing-1.5.tar.gz
- If you're installing into a prefix, you'll need to set two environment variables: CPPFLAGS=-I<prefix>/include LDFLAGS=-L<prefix>/lib ./configure --prefix=<prefix>
- lttoolbox (version 2.0)
Building
- Checkout
$ cvs -d:pserver:anonymous@matxin.cvs.sourceforge.net:/cvsroot/matxin login $ cvs -z3 -d:pserver:anonymous@matxin.cvs.sourceforge.net:/cvsroot/matxin co -P matxin
$ aclocal; automake -a; autoconf $ LTTOOLBOX_DIR=/home/fran/svnroot/local/unstable/ LDFLAGS="-L/home/fran/local/lib -L/usr/lib" CPPFLAGS="-I/home/fran/local/include" ./configure --prefix=/home/fran/local/
You will probably need to fix a few things in the file: src/Makefile
to get it to build, for example add:
DEFAULT_INCLUDES = -I. -I$(srcdir) -I/usr/include/libxml2 CPPFLAGS = -I/home/fran/svnroot/local/unstable//include/lttoolbox-2.0 -I/home/fran/local/include
and comment out the deformatters in the Makefile.am as they don't build properly.
Executing
$ export MATXIN_DIR=<prefix> $ echo "Esto es una prueba" | ./Analyzer -f $MATXIN_DIR/share/matxin/config.cfg | ./LT -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 1 -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_prep -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 2 -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_verb -f $MATXIN_DIR/share/matxin/config.cfg | ./ST_inter --inter 3 -f $MATXIN_DIR/share/matxin/config.cfg | ./SG_inter -f $MATXIN_DIR/share/matxin/config.cfg | ./SG_intra -f $MATXIN_DIR/share/matxin/config.cfg | ./MG -f $MATXIN_DIR/share/matxin/config.cfg | ./reFormat Hau prueba bat da