Questions tagged [apertium]

Apertium is a free/open-source rule-based machine translation platform. It includes both tools (compilers and runtime processors, mostly in C++) and language data (mostly in XML) for a number of languages, with a special focus on marginalised languages. Processing is typically done using finite-state transducers, with Hidden Markov Models or Constraint Grammar for disambiguation – individual language pairs differ in the tools they depend on.

There is a wealth of information on the Apertium Wiki at http://wiki.apertium.org

In particular, see http://wiki.apertium.org/wiki/Installation . If you are developing on language data, you'll want to use Tino's nightly builds: http://wiki.apertium.org/wiki/Install_Apertium_core_using_packaging

14 questions
5
votes
1 answer

Apertium translator. Is there a way to get the original phrase

Is there a way in apertium translator to get the original phrase for a translation? I.E. get something like: phrase: { original: { Hola, buenos días}, translated: {Hello, good morning} } I need that in order to make a mechanism to improve the…
Alfonso Tienda
  • 3,442
  • 1
  • 19
  • 34
2
votes
1 answer
2
votes
1 answer

How to make an offline translator?

**Problem: ** The result must be a working translator - offline. We need http API (self-hosted) similar to Google Translate. I found a few options: Install Microsoft Translator on Windows, download dictionaries, and somehow through http transfer…
2
votes
1 answer

how to remove translation error in apertium language pair?

i m translating words in terminal by this command echo باپ | apertium -d . urd-pan_Arab and it is giving me #پیو which is correct but when i run echo کبھی | apertium -d . urd-pan_Arab it is giving me same word again as if there is no word in dict…
H S Umer farooq
  • 981
  • 1
  • 8
  • 14
1
vote
0 answers

Apertium package in Python returns module not installed error after installing module

I'm trying to get the english to german translator from the apertium package to work, but it seems that even if the languages are downloaded and installed the translator cannot find them, returning a mode not installed error. Am I downloading the…
Hal
  • 75
  • 6
1
vote
1 answer

Can't install apertium language packages from source - make command shows errors

I am trying to install apertium-eng-ita package from source (available at https://github.com/apertium/apertium-eng-ita). The system is debian 11 (i tried also on fresh ubuntu, get the same error). So i downloaded all the files into my /root…
creators
  • 179
  • 8
1
vote
1 answer

APERTIUM PYTHON: Translation from Spanish to Catalan

I am a complete newbie trying to use Apertium for translating Spanish short strings to Catalan, however I get the following warning: lt-proc: invalid option -- 'x' I have read that that's common in the Python module and is not deeply worrying,…
1
vote
1 answer

Apertium + Python: POS-tagger not providing surface form

I'm trying to POS-tag some sentences in Italian with Apertium's tagger. While according to the Apertium GitHub page I am supposed to get as output also the surface form in addition to the morphological analysis, I only get the analysis. I want also…
1
vote
0 answers

How to build jar files for apertium translation pairs

I am new to apertium. When I tried to generate the jar file for the language pair it gives the following error. apertium@ap-vbox:~/lttoolbox/lttoolbox-java$ ./apertium-pack-j …
Praveen
  • 93
  • 1
  • 7
1
vote
1 answer

Unable to generate mode files in apertium for Eng-fra language pair

I am trying to make a standalone language pair using apertium. I compiled the language package for eng-fra.But the mode files are not generated it shows the following error. apertium-validate-modes modes.xml modes.xml:6: element mode: validity …
Praveen
  • 93
  • 1
  • 7
1
vote
1 answer

compiling error in apertium language pair

I was making english-spanish language pair by following these http://wiki.apertium.org/wiki/How_to_bootstrap_a_new_pair apertium instructions but after scripting pair when I go: ./autogen.sh --with-lang1=../apertium-en --with-lang2=../apertium-es…
H S Umer farooq
  • 981
  • 1
  • 8
  • 14
1
vote
1 answer

How to boot-strap a language pair in apertium?

I was following all steps for bootstrapping of existing language pair here http://wiki.apertium.org/wiki/How_to_bootstrap_a_new_pair and after following steps when i'm giving command in ubunto terminal echo house | apertium -d . eng-spa it replies…
H S Umer farooq
  • 981
  • 1
  • 8
  • 14
0
votes
2 answers

Android Translate API

I'm developing an Android translation app and I've been searching a translation API with the capacity of language packages download to use the app offline but I'm not able to find something similar. I've found two open source API, MyMemory and…
gonver
  • 349
  • 1
  • 12
0
votes
2 answers

java.lang.NoClassDefFoundError when Translating

I am using the Apertium Translator and using the sample code they provide. My code is like this. import com.robtheis.aptr.language.Language; import com.robtheis.aptr.translate.Translate; public class Test { public static void main(String[] args)…
user2612619
  • 1,119
  • 3
  • 11
  • 28