Skip to content
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

Mystem process doesn't terminate after Main thread quits #3

Open
giuliorm opened this issue Sep 22, 2017 · 2 comments
Open

Mystem process doesn't terminate after Main thread quits #3

giuliorm opened this issue Sep 22, 2017 · 2 comments

Comments

@giuliorm
Copy link

I have a code, similar to that in example:

public class LemmatizationAnnotator implements edu.stanford.nlp.pipeline.Annotator {

  private static final Option<String> NULL_OPTION = scala.Option.apply(null);
  private static final MyStem mystemAnalyzer =
          new Factory("-ld --format json").newMyStem("3.0", Option.<File>empty()).get();

The issue that when I run mvn clean package for my App, which uses this class like
new LemmatizationAnnotator(), the test phase also runs and test environment is built every time, which means MystemAnalyzer is created every time, as well as mystem.exe process runs every time (I'm working on Windows). The issue that Surefire waits for every non-daemon process for my app to finish, and mystem.exe doesn't finish after main thread exits. So my mvn clean package just hangs and waits for MyStem to exit. Is this an issue for wrapper or should I figure it out somehow by myself?

@alexeyev
Copy link
Owner

Hi, thanks for reporting.

Gut feeling tells me this does have something to do with the wrapper. Unfortunately, I don't have the resources to investigate this in the nearest weeks, so I'd be very grateful if you tried to figure it out yourself and maybe explained what the trouble was and how to fix it.

  • Sorry for not responding for quite a while.

@vgindin
Copy link

vgindin commented Aug 16, 2018

Hi, I've faced the same problem. I've made a simple token filter for elasticsearch/lucene, that calls mystem. Could you advise the way how to investigate that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants