I worked around it this way:

java -cp languagetool.jar org.languagetool.dev.POSDictionaryBuilder
nl_dict.txt org/languagetool/resource/nl/dutch.info > out_dict.txt
FN=`cat out_dict.txt | grep "Done" | sed "s/^.*\/t/\/t/g"`
cp $FN org/languagetool/resource/nl/dutch.dict
java -cp languagetool.jar org.languagetool.dev.SynthDictionaryBuilder
nl_dict.txt org/languagetool/resource/nl/dutch_synth.info > out_synth.txt
FN=`cat out_dict.txt | grep "Done" | sed "s/^.*\/t/\/t/g"`
cp $FN org/languagetool/resource/nl/dutch_synth.dict

Ruud

> I generate the dictionary from teh command line using these commands:
>
> java -cp languagetool.jar org.languagetool.dev.POSDictionaryBuilder
> nl_dict.txt org/languagetool/resource/nl/dutch.info
> java -cp languagetool.jar org.languagetool.dev.SynthDictionaryBuilder
> nl_dict.txt org/languagetool/resource/nl/dutch_synth.info
>
> Then there is te output:
> The binary dictionary has been written to
> /tmp/DictionaryBuilder6440501761958967843.dic
>
> Why is this? I expected it to generate it in the working directory, or
> somewehere specified.
>
> How can I achieve that?
>
> Ruud
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Languagetool-devel mailing list
> Languagetool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>



------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to