Skip to content

Petrarch2 with Hypnos Docker container crashes #2

Open

Description

@rachel-latour

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.

Activity

  1. johnb30 commented on Nov 14, 2016

    @johnb30
    Member

    Could you post a longer snippet of the error?

  2. rachel-latour commented on Nov 14, 2016

    @rachel-latour
    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.

  3. johnb30 commented on Nov 14, 2016

    @johnb30
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions