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

Petrarch2 with Hypnos Docker container crashes #2

Open
rachel-latour opened this issue Oct 19, 2016 · 3 comments
Open

Petrarch2 with Hypnos Docker container crashes #2

rachel-latour opened this issue Oct 19, 2016 · 3 comments

Comments

@rachel-latour
Copy link

I'm using the sample code from the README, and spun up Hypnos with docker-compose. Runs of the Python sample code return coded sentences (NLP is working fine), but events are empty and Docker logs shows petrarch_1 throwing "An error occured with PETR" errors with each submission.

Changing the text and shortening the text have had no effect. I get the same error each time.

I'm running the containers on a Redhat 6 server with Docker version 1.10.3.

@johnb30
Copy link
Member

johnb30 commented Nov 14, 2016

Could you post a longer snippet of the error?

@rachel-latour
Copy link
Author

It's from petrarch_app.py: https://github.com/openeventdata/hypnos/blob/master/petrarch/petrarch_app.py#L40

There is no longer error, that's all I ever see. It looks like the call to petrarch2.do_coding fails. Running the elements of Hypnos separately (Petrarch, Standford NLP, CLIFF, etc) works fine, but the Hypnos docker doesn't.

@johnb30
Copy link
Member

johnb30 commented Nov 14, 2016

I think I've found the issue and will work to fix it ASAP. It's related to openeventdata/petrarch2#15.

As a short-term fix you can work with the output dictionaries in petrarch_app.py to extract the information you want before it gets dumped to JSON.

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

2 participants