-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using multithreading #3
Comments
@katjahauser Can you share us your multi-thread code you run for GermaNER? This will help us to quickly test the bug and find out a solution |
Hey there,
you find attached the Python script I used.
It connects with a MongoDB and converts articles into the format
GermaNER needs, so there is a little overhead. I think most relevant for
you is the method "callGermaNER" in the lines 15ff and the part where I
actually call it in the lines 142ff. These pieces of code can be
extracted an run without the conversion overhead beforehand, I don't
recall any dependencies.
Notice, that while the program converts all articles in the collection,
it only uses GermaNER on two files (the latter can be changed in l.
147). You will want to use a larger number of files (e.g. 100) to
reconstruct the error.
If you have any questions feel free to contact me.
Best,
Katja Hauser
…On 04.12.2016 22:24, Seid Muhie Yimam wrote:
@katjahauser <https://github.com/katjahauser> Can you share us your
multi-thread code you run for GermaNER? This will help us to quickly
test bug and find out a solution
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT-XWFoRuFFFTtK8Epipl8jM2klNn1GFks5rEy9xgaJpZM4Jg7Co>.
|
I encounter this problem compiling cleartk as well. The CrfSuiteClassiferTest failed due to this error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm running several threads each executing GermaNER and keep getting occasional
exceptions (with varying numbers of instances) caused by
I do not encounter this problem when running GermaNER with only one thread.
Having had a look at CrfSuiteWrapper I'd suppose this error stems from a race condition related to the occasionally(?) used temporary file. Can you reproduce this error and confirm my assumption?
I think a very simple workaround would be to simply add a random number to the name of the temp-file to avoid the race condition. Do you have other ideas how to avoid this or any tips in regard to running multiple instances of GermaNER in parallel?
Best regards,
Katja
The text was updated successfully, but these errors were encountered: