Difference between revisions of "Matxin"
Jump to navigation
Jump to search
(100 intermediate revisions by 7 users not shown) | |||
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. |
+ | This page describes how to install the system, see [[Matxin#Documentation]] below for how to create or maintain language pairs. |
||
− | ==Prerequisites== |
||
+ | ==Installation== |
||
− | * 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 (version 1.5) — 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]] |
||
⚫ | |||
⚫ | |||
+ | $ git clone https://github.com/matxin/matxin.git |
||
+ | $ cd matxin/ |
||
+ | $ ./autogen.sh |
||
+ | $ make |
||
+ | # make install |
||
⚫ | |||
+ | ==Language pairs== |
||
− | ;libfries |
||
+ | * [[matxin-spa-eus]] |
||
− | If you get the error to do with "strlen was not declared in this scope", add <code>#include <string.h></code> to the file <code>src/include/fries/language.h</code>. |
||
+ | * [[matxin-eng-eus]] |
||
⚫ | |||
− | If you get the error to do with "set_union was not declared in this scope", add <code>#include <algorithm></code> to the file <code>src/libfries/RGF.cc</code>. |
||
+ | ;Can't find AP_MKINCLUDE |
||
− | ;libomlet |
||
− | If you get the error to do with "exit was not declared in this scope", add <code>#include <stdlib.h></code> to the file <code>src/libomlet/adaboost.cc</code>. |
||
− | ;FreeLing |
||
− | If you get the error to do with "exit was not declared in this scope", add <code>#include <stdlib.h></code> to the files <code>src/utilities/indexdict.cc</code>, <code>src/libmorfo/accents.cc</code>, <code>src/libmorfo/accents_modules.cc</code>, <code>src/libmorfo/dictionary.cc</code>, <code>src/libmorfo/tagger.cc</code>, <code>src/libmorfo/hmm_tagger.cc</code>. |
||
+ | set your <code>ACLOCAL_PATH</code> to include the path to <code>matxin.m4</code> |
||
− | If you get the error to do with "strlen was not declared in this scope", add <code>#include <string.h></code> to the files <code>src/libmorfo/automat.cc</code>, <code>src/libmorfo/dates.cc</code>, <code>src/libmorfo/locutions.cc</code>, <code>src/libmorfo/maco.cc</code>, <code>src/libmorfo/np.cc</code>, <code>src/libmorfo/nec.cc</code>, <code>src/libmorfo/numbers.cc</code>, <code>src/libmorfo/numbers_modules.cc</code> and <code>src/libmorfo/dates_modules.cc</code>. |
||
⚫ | |||
− | If you get the error to do with "memcpy was not declared in this scope", add <code>#include <string.h></code> to the file <code>src/libmorfo/dictionary.cc</code> |
||
⚫ | |||
− | ==Building== |
||
+ | * [[Documentation of Matxin]] (in English) |
||
+ | * [[Matxin New Language Pair HOWTO]] |
||
+ | ==Contact== |
||
− | ;Checkout |
||
+ | Questions and comments about Matxin can be sent to their mailing list [https://lists.sourceforge.net/lists/listinfo/matxin-devel matxin-devel], or to the [https://lists.sourceforge.net/lists/listinfo/apertium-stuff apertium-stuff] list. |
||
⚫ | |||
− | $ svn co http://matxin.svn.sourceforge.net/svnroot/matxin |
||
⚫ | |||
+ | ==External links== |
||
− | First comment out the deformatters in the <code>Makefile.am</code> as they don't build properly. |
||
+ | *[http://ixa.si.ehu.es/Ixa IXA Research Group] |
||
− | Then do: |
||
− | |||
− | <pre> |
||
− | $ 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/ |
||
− | </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: |
||
− | |||
− | <pre> |
||
− | DEFAULT_INCLUDES = -I. -I$(srcdir) -I/usr/include/libxml2 |
||
− | CPPFLAGS = -I<prefix>/include/lttoolbox-2.0 -I<prefix>/include |
||
− | </pre> |
||
− | |||
− | ==Executing== |
||
− | |||
− | <pre> |
||
− | $ 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 |
||
− | </pre> |
||
− | |||
− | ==Speed== |
||
− | |||
− | Between 25--30 words per second. |
||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | [[Category: |
+ | [[Category:Matxin|*]] |
Latest revision as of 20:29, 7 May 2016
Matxin is a free software machine translation engine related to Apertium. It allows for deeper transfer than can be found in Apertium.
This page describes how to install the system, see Matxin#Documentation below for how to create or maintain language pairs.
Installation[edit]
$ git clone https://github.com/matxin/matxin.git $ cd matxin/ $ ./autogen.sh $ make # make install
Language pairs[edit]
Troubleshooting[edit]
- Can't find AP_MKINCLUDE
set your ACLOCAL_PATH
to include the path to matxin.m4
Documentation[edit]
- Descripción del sistema de traducción es-eu Matxin (in Spanish)
- Documentation of Matxin (in English)
- Matxin New Language Pair HOWTO
Contact[edit]
Questions and comments about Matxin can be sent to their mailing list matxin-devel, or to the apertium-stuff list.