Apertium has moved from SourceForge to GitHub.
If you have any questions, please come and talk to us on #apertium on irc.freenode.net or contact the GitHub migration team.

Install quick tests

From Apertium
Revision as of 09:47, 23 April 2017 by Rcrowther (Talk | contribs)

Jump to: navigation, search

More convincing if you have a language pair on the computer somewhere :)

If you only compiled Apertium core

One way to test you have something, immediately, it to try invoke a tool. , After a core has been installed, this should work for both packaged and compiled Apertium. Without language data you can't see a translation, but you can see the help. Try,

lt-proc

You should see the help files?


If you installed a language pair by packaging, or manual install

You may have done this as a quick test for a compiled core. Or because you do not want to develop, only use the language data. Or you used packaging, and installed, as a test, a pair.

 echo 'This is a test sentence' | apertium xxx-yyy

e.g.

 echo 'This is a test sentence' | apertium eo-en

This command does not need to use the -d switch. The language pair is installed, so Apertium can find it, whatever directory you're in.


If you downloaded and compiled a language pair

You downloaded and compiled language data, but did not install.

Go into the bilingual dictionary and try,

echo 'This is a test sentence.' | apertium -d . xxx-yyy

e.g.

 echo 'This is a test sentence' | apertium -d . eo-en

The -d . means "use the language data in this directory".

Personal tools