Back to LanguageTool Homepage - Privacy - Imprint

Can't create dictionary


(Aafreen) #1

I tried to view the word list and generate .dict file as mentioned in the below url…
http://wiki.languagetool.org/hunspell-support
.dict file generated but in different format.
I could not able to get the word list after generating a new .dict.

D:\LT>java -cp languagetool.jar org.languagetool.tools.DictionaryExporter
-i english.dict -info english.info -o result6.txt
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Running Morfologik DictDecompile.main with these options: [–exit, false, -i, en
glish.dict, -o, C:\Users\IS5762\AppData\Local\Temp\DictionaryExporter_separator8
280283739347904056.txt]

An unhandled exception occurred. Stack trace below.
java.lang.RuntimeException: Invalid dictionary entry format (missing separator).

    at morfologik.stemming.DictionaryIterator.next(DictionaryIterator.java:5
  1.  at morfologik.stemming.DictionaryIterator.next(DictionaryIterator.java:1
    
  2.  at morfologik.tools.DictDecompile.call(DictDecompile.java:80)
     at morfologik.tools.DictDecompile.call(DictDecompile.java:20)
     at morfologik.tools.CliTool.main(CliTool.java:133)
     at morfologik.tools.DictDecompile.main(DictDecompile.java:132)
     at org.languagetool.tools.DictionaryExporter.build(DictionaryExporter.ja
    

va:80)
at org.languagetool.tools.DictionaryExporter.main(DictionaryExporter.jav
a:59)
Done. The dictionary export has been written to result.txt


(Yakov) #2

Some dictionaries like English contain frequency data. (http://wiki.languagetool.org/hunspell-support section Including frequency data). Export from these dictionaries is not supported yet.