Difference between revisions of "Matxin"

From Apertium
Jump to navigation Jump to search
Line 1: Line 1:
 
{{TOCD}}
 
{{TOCD}}
'''Matxin''' is a free software machine translation engine related to [[Apertium]]. It allows for deeper transfer than can be found in Apertium.
+
'''Matxin''' is a free software machine translation engine related to [[Apertium]]. It allows for deeper transfer than can be found in Apertium. Although it currently only supports
   
 
==Prerequisites==
 
==Prerequisites==
Line 20: Line 20:
 
$ cvs -z3 -d:pserver:anonymous@matxin.cvs.sourceforge.net:/cvsroot/matxin co -P matxin
 
$ cvs -z3 -d:pserver:anonymous@matxin.cvs.sourceforge.net:/cvsroot/matxin co -P matxin
 
</pre>
 
</pre>
  +
 
First comment out the deformatters in the <code>Makefile.am</code> as they don't build properly.
  +
  +
Then do:
   
 
<pre>
 
<pre>
Line 33: Line 37:
 
CPPFLAGS = -I<prefix>/include/lttoolbox-2.0 -I<prefix>/include
 
CPPFLAGS = -I<prefix>/include/lttoolbox-2.0 -I<prefix>/include
 
</pre>
 
</pre>
 
and comment out the deformatters in the <code>Makefile.am</code> as they don't build properly.
 
   
 
==Executing==
 
==Executing==

Revision as of 19:29, 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. Although it currently only supports

Prerequisites

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>

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

First comment out the deformatters in the Makefile.am as they don't build properly.

Then do:

$ 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<prefix>/include/lttoolbox-2.0 -I<prefix>/include

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

Documentation