> It is... I just had the same problem on English text. Running LT on the
> same text again there was no problem. Anyway, I think the problem is
> this:
>
> -a MultiThreadedJLanguageTool uses one Language object from multiple
> threads
> -the Language object has one BaseSynthesizer
> -BaseSynthesizer is using Morfologik's DictionaryLookup
> -DictionaryLookup isn't thread-safe -> crash
>
> Is that correct?

Sounds right. The fix should look very similar to the one in
BaseTagger: cache the Dictionary, but re-create the IStemme whenever
it's needed. Will you fix this problem? Or should I do it (probably
tonight or tomorrow)?

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to