You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
johnb30 commentedon Nov 14, 2016
Could you post a longer snippet of the error?
rachel-latour commentedon Nov 14, 2016
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 commentedon 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.pyto extract the information you want before it gets dumped to JSON.