Open olabknbit opened 5 years ago
@olabknbit thanks so much!!
http://localhost:5000
is reachable? I will check tomorrow/next week to see if I can reproduce the issue.allennlp
, the one that I trained was 0.7.1. yeah, yeah, I tried both ports, accessing http://localhost:5000
and http://localhost:8000
and also using the --port
flag to change it to some other port but it always says the same thing. Thanks!
Hi @olabknbit I can successfully run the Flask script on my laptop and the Ubuntu laptop. My Flask version is 0.12.4
and my allennlp version is 0.7.1
. Maybe you can try running simple Flask script such as in http://flask.pocoo.org/ first to see if it works? I will try to see if I can reproduce an error soon.
I've been trying to use your classifier but encountered a couple of problems:
In your README line
wget https://s3-us-west-2.amazonaws.com/pubmed-rct/model.tar.gz
downloads the model to the main dir, notoutput/
and the later commands assume model will be in theoutput
dir.The commands (and web_service.sh) all use
discourse_classifier
as a predictor, where I believe they should usediscourse_predictor
instead.discourse_classifier
gives errorallennlp.common.checks.ConfigurationError: 'discourse_classifier is not a registered name for Predictor'
As long as I was able to detect the previous problems quite quickly and fixing them was trivial, I stumbled across a problem I couldn't overcome: The commands for starting the web server do not start it for me. I get
or
But when I go the the localhost:
port
, I getThis site can’t be reached
:(Also, since I downloaded the latest
allennlp
the flags might have changed, and the evaluate command should be of the formallennlp evaluate model.tar.gz https://s3-us-west-2.amazonaws.com/pubmed-rct/test.json --include-package discourse
Could you help me fix the issue 3.? Thanks!