DicLookUp

From Apertium
Revision as of 11:21, 11 March 2008 by Ebenimeli (talk | contribs) (Generating dictionaries for DicLookUp)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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-dictools dic2trie <dic> <lr|rl> [<out>]

For example, for Spanish-Catalan dictionaries:

$ apertium-dictools dic2trie apertium-es-ca.es-ca.dix lr es-ca-lr-trie.xml
$ apertium-dictools dic2trie 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