Nitish Gupta

Results 31 comments of Nitish Gupta

I'm geting the same error when I'm running code inside a conda environment

I found that I get this error when I run my code within a conda environment. Is there a fix for that?

I haven't tried to trace the error, let me give it a shot and submit a PR asap.

@epwalsh , Matt said that you might be able to help.

@epwalsh - Inside the `api` directory I ran `make bidaf_elmo-run` which seems to be running fine (output below) Then I follow the steps in Local Development, but when I run...

But there isn't a `setup.py` for pip install ...

Great, I didn't know about the `PYTHONPATH` env variable. So the error now is -- ``` Traceback (most recent call last): File "allennlp_demo/bidaf_elmo/api.py", line 15, in endpoint = BidafElmoModelEndpoint() File...

Related -- I've faced a similar issue when using `Predictor.from_archive` otherwise; I get the same error until I import the required Predictor class in my python code (even if the...

Okay, so with bidaf-elmo the issue was incorrect predictor name in `model.json` (`reading-comprehension` in demo, and `reading_comprehension` in `allennlp-models`). On fixing this the `api.py` does run and when I open...

Okay; there is no Dockerfile in `bidaf_elmo` so I don't know which `allennlp-models` is installed in the Docker image. If it is `allennlp-models==1.0.0rc3` as in the `requirements.txt` in the `api`...