From Apertium
Jump to navigation Jump to search


svn co crossdics


$ cd crossdics
$ ant compile

Crossing dictionaries

First of all, copy linguistic data into folder "dics"

  • Bilingual dictionary A-B:
  • Bilingual dictionary B-C:
  • Morphological dictionary A: apertium-bb-aa.aa.dix
  • Morphological dictionary C:

Please note that:

  • all dictionaries must be in the form:
    • apertium-xx-yy.xx-yy.dix (bilingual dictionaries)
    • apertium-xx-yy.xx.dix (morphological dictionaries)
  • the common language (B) must be in the left side, that is, dictionaries in the form B-A and B-C
  • use "-r" instead of "-n" if the dictionary has to be reversed (apertium-aa-bb.aa-bb.dix to

Use the dictools script to cross the dictionaries:

./dictools cross monA.dix -n bilAB.dix -n bilBC-dix monC.dix

An example of crossing es-ca and es-pt to get the ca-pt pair.

./dictools cross dics/ -n dics/ -n dics/ dics/