Difference between revisions of "Compiling dictionaries"

From Apertium
Jump to navigation Jump to search
m
Line 2: Line 2:
 
This page gives some specific instructions for compiling dictionaries from various language pairs using different build procedures.
 
This page gives some specific instructions for compiling dictionaries from various language pairs using different build procedures.
   
==English--Catalan==
+
==English—Catalan==
  +
  +
The English dictionary in English&mdash;Catalan, along with the English dictionaries in some other pairs (e.g. English&mdash;Spanish and English&mdash;Galician) uses a [[metadix]] file. This needs to be preprocessed before it can be compiled with <code>lt-comp</code>.
  +
  +
<pre>
  +
  +
$ xsltproc buscaPar.xsl apertium-en-ca.en.metadix | uniq > tmp1gen.xsl
  +
$ xsltproc tmp1gen.xsl apertium-en-ca.en.metadix > apertium-en-ca.en.dixtmp1
  +
$ rm tmp1gen.xsl
  +
$ apertium-validate-acx apertium-en-ca.en.acx
  +
$ apertium-validate-dictionary apertium-en-ca.en.dixtmp1
  +
$ lt-comp lr apertium-en-ca.en.dixtmp1 apertium-en-ca.en.acx
  +
$ rm apertium-en-ca.en.dixtmp1
  +
  +
</pre>
   
 
==Portuguese--Spanish==
 
==Portuguese--Spanish==

Revision as of 09:15, 25 November 2009

This page gives some specific instructions for compiling dictionaries from various language pairs using different build procedures.

English—Catalan

The English dictionary in English—Catalan, along with the English dictionaries in some other pairs (e.g. English—Spanish and English—Galician) uses a metadix file. This needs to be preprocessed before it can be compiled with lt-comp.


$ xsltproc buscaPar.xsl apertium-en-ca.en.metadix | uniq > tmp1gen.xsl
$ xsltproc tmp1gen.xsl apertium-en-ca.en.metadix > apertium-en-ca.en.dixtmp1
$ rm tmp1gen.xsl
$ apertium-validate-acx apertium-en-ca.en.acx
$ apertium-validate-dictionary apertium-en-ca.en.dixtmp1
$ lt-comp lr apertium-en-ca.en.dixtmp1 apertium-en-ca.en.acx
$ rm apertium-en-ca.en.dixtmp1

Portuguese--Spanish

Occitan--Catalan

See also