Back to LanguageTool Homepage - Privacy - Imprint

Export dictionary for German language

Hello everyone.

As described here, I should be able to export dictionary for specific language. And everything is ok for English:

java -cp languagetool.jar org.languagetool.tools.DictionaryExporter -i org/languagetool/resource/en/english.dict -info org/languagetool/resource/en/english.info -o dictionary.dump

But I can not follow this instruction when I try to export dictionary for German language - I simply have no german.dict file there:

    root@c28f302911d8:/LanguageTool-4.6# ls -la org/languagetool/resource/de/
    total 1972
    drwxr-xr-x  3 root root    4096 Jul  8 07:38 .
    drwxr-xr-x 29 root root    4096 Jul  8 07:38 ..
    -rw-r--r--  1 root root     300 Jun 26 09:30 README.txt
    -rw-r--r--  1 root root  363005 Jun 26 09:30 added.txt
    -rw-r--r--  1 root root   20361 Jun 26 09:30 alt_neu.csv
    -rw-r--r--  1 root root    7842 Jun 26 09:30 case_rule_exceptions.txt
    -rw-r--r--  1 root root   87883 Jun 26 09:30 common_words.txt
    -rw-r--r--  1 root root    2095 Jun 26 09:30 compound-cities.txt
    -rw-r--r--  1 root root   75571 Jun 26 09:30 compounds.txt
    -rw-r--r--  1 root root   64998 Jun 26 09:30 confusion_set_candidates.txt
    -rw-r--r--  1 root root   15573 Jun 26 09:30 confusion_sets.txt
    -rw-r--r--  1 root root  112519 Jun 26 09:30 disambiguation.xml
    -rw-r--r--  1 root root     102 Jun 26 09:30 errors.txt
    drwxr-xr-x  2 root root    4096 Jul  8 07:38 hunspell
    -rw-r--r--  1 root root    4641 Jun 26 09:30 removed.txt
    -rw-r--r--  1 root root 1224164 Jun 26 09:30 spelling_correction_model.bin
    -rw-r--r--  1 root root    2379 Jun 26 09:30 tagset.txt

So can anyone tell me, how do I have such file

inflected form
base form
POS tag

for German language?

I use dockerized LanguageTool 4.6, inspired with this repo.

The German POS dictionary is at https://github.com/languagetool-org/german-pos-dict/releases

1 Like

Thank you, it worked.