Dear all,
I can use the language pair fr-es with this command :
~/apertium/apertium-fr-es $ echo "J'ai deux frères" | apertium fr-es
Tengo dos hermanos
But not with this command :
~/apertium/apertium-en-es $ echo "J'ai deux frères" | apertium -d
~/apertium/apertium-fr-es/ fr-es
Error: Mode fr-es does not exist. Try one of:
es-fr-anmor
es-fr-biltrans
es-fr-chunker
es-fr-generador
es-fr-interchunk
es-fr-postchunk
es-fr-pretransfer
es-fr-tagger
fr-es-anmor
fr-es-biltrans
fr-es-chunker
fr-es-generador
fr-es-interchunk
fr-es-postchunk
fr-es-pretransfer
fr-es-tagger
I downloaded the language pair from svn and ran the installation commands
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ; ./autogen.sh + make + sudo make
install) . Everything seemed to go fine (no error message).
To compile apertium, I followed the procedure described at
http://wiki.apertium.org/wiki/Become_a_language_pair_developer_for_Apertium#Changing_Things_Around.
Everything went fine.
Below is the content of the apertium file :
~/apertium/apertium-en-es $ cat /usr/local/bin/apertium | grep -e APERTIUM
-e DEFAULT
APERTIUM_PATH="/usr/local/bin"
DEFAULT_DIRECTORY="/usr/local/share/apertium"
PATH="${APERTIUM_PATH}:${PATH}"
$APERTIUM_PATH/apertium-prelatex "$FICHERO" | \
$APERTIUM_PATH/apertium-utils-fixlatex | \
$APERTIUM_PATH/apertium-deslatex | \
else $APERTIUM_PATH/lt-tmxproc $TMCOMPFILE;
$APERTIUM_PATH/apertium-relatex| \
$APERTIUM_PATH/apertium-postlatex >"$SALIDA"
$APERTIUM_PATH/apertium-prelatex "$FICHERO" | \
$APERTIUM_PATH/apertium-utils-fixlatex | \
$APERTIUM_PATH/apertium-deslatex | \
else $APERTIUM_PATH/lt-tmxproc $TMCOMPFILE;
$APERTIUM_PATH/apertium-relatex| \
$APERTIUM_PATH/apertium-postlatex-raw >"$SALIDA"
$APERTIUM_PATH/apertium-desodt |\
else $APERTIUM_PATH/lt-tmxproc $TMCOMPFILE;
$APERTIUM_PATH/apertium-reodt|\
$APERTIUM_PATH/apertium -f xlsx -d $DIRECTORY $OPCIONU $PREFIJO <$i
>$LOCALTEMP;
$APERTIUM_PATH/apertium-deswxml |\
else $APERTIUM_PATH/lt-tmxproc $TMCOMPFILE;
$APERTIUM_PATH/apertium-rewxml|\
$APERTIUM_PATH/apertium -f xlsx -d $DIRECTORY $OPCIONU $PREFIJO <$i
>$LOCALTEMP;
$APERTIUM_PATH/apertium-despptx |\
else $APERTIUM_PATH/lt-tmxproc $TMCOMPFILE;
$APERTIUM_PATH/apertium-repptx |\
$APERTIUM_PATH/apertium-desxlsx |\
else $APERTIUM_PATH/lt-tmxproc $TMCOMPFILE;
$APERTIUM_PATH/apertium-rexlsx |\
$APERTIUM_PATH/apertium-deshtml "$FICHERO" | \
else $APERTIUM_PATH/lt-tmxproc $TMCOMPFILE;
else $APERTIUM_PATH/apertium-rehtml-noent >"$SALIDA";
-l) DATOS=$DEFAULT_DIRECTORY; list_directions; exit 0;;
if [ x$DIRECTORY = x ]; then DIRECTORY=$DEFAULT_DIRECTORY; fi
then $APERTIUM_PATH/lt-tmxcomp $TRANSLATION_MEMORY_DIRECTION
$TRANSLATION_MEMORY_FILE $TMCOMPFILE >/dev/null
else $APERTIUM_PATH/apertium-des$FORMATADOR "$FICHERO"; fi| \
else $APERTIUM_PATH/lt-tmxproc $TMCOMPFILE;
else $APERTIUM_PATH/apertium-re$FORMATADOR >"$SALIDA";
Regards,
Estelle.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff