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.


From Apertium
Revision as of 14:06, 17 March 2008 by Ebenimeli (talk | contribs)
Jump to navigation Jump to search

Generating dictionaries for DicLookUp

DicLookUp needs dictionaries in a special form (Trie). There is a task in apertium-dictools that can convert from Apertium dix files into trie-dictionaries.

$ apertium-dixtools dix2trie <dic> <lr|rl> [<out>]
$ apertium-dixtools dix2trie apertium-sl-tl.sl-tl.dix lr sl-tl-lr-trie.xml
$ apertium-dixtools dix2trie apertium-sl-tl.sl-tl.dix rl sl-tl-rl-trie.xml

For example, for Spanish-Catalan dictionaries:

$ apertium-dixtools dix2trie apertium-es-ca.es-ca.dix lr es-ca-lr-trie.xml
$ apertium-dixtools dix2trie apertium-es-ca.es-ca.dix rl es-ca-rl-trie.xml

Then, to make them work on the Apertium website, put the trie-files in webspace/common/xml

$ cp es-ca-lr-trie.xml webspace/common/xml
$ cp es-ca-rl-trie.xml webspace/common/xml