Back to LanguageTool Homepage - Privacy - Imprint

How to compile dictionary file .dic to .dict?


(yangbo) #1

Hi, nice to meet you

while the checkspell is slow when get suggestion, so I want to compile a .dict from .dic and .aff file.

I did it use this shell (as http://wiki.languagetool.org/hunspell-support say)

languagetool-language-modules/de/src/main/resources/org/languagetool/resource/de/hunspell/create_dict.sh ar EG

the last error is
Exception in thread "main" java.lang.RuntimeException: Cannot read file: /lt/frequency-data/freeWordFreqsGaia/de_free_gaia.xml
at org.languagetool.tools.DictionaryBuilder.readFreqList(DictionaryBuilder.java:139)
at org.languagetool.tools.SpellDictionaryBuilder.main(SpellDictionaryBuilder.java:61)

I know there isn't have this file, so what I need to do the next step? Thanks!


(Daniel Naber) #2

You can get the file at https://github.com/mozilla-b2g/gaia/tree/master/apps/keyboard/js/imes/latin/dictionaries, but you can also skip it. I've added a comment to the script how to do that.


(yangbo) #3

Thanks for your reply.
It's very helpful.