Open tedgoddard opened 4 years ago
This repo has not yet been updated for allennlp 1.0. Please install allennlp 0.9 for now.
Thanks so much for the quick update. Do you have a rough ETA on when allennlp-semparse will be integrated with 1.0? (I was hoping to update everything to 1.0, but perhaps would need to run a separate image for 0.9.)
I don't think there's very much that needs to change, but no one is actively working on it right now, so I don't have an estimate, unfortunately.
It should just be a collection of really small things like the error that you found here (it's just renaming a method). If you want to help, it'd be awesome to just open a PR with an updated allennlp version in requirements.txt
, and then we can see test failures. Hopefully there aren't too many, and they are easy. Getting that started would go a long way towards me prioritizing this work :).
Very good, I'll start on that and ping you again when I have some progress (or extreme lack of progress).
So I found the updated function for decode
, made progress with DatasetReader and Predictor registration with test code improvements, then was stuck with an incorrect datatype being passed to gather(). I doubt I would have made much progress with that, but then noticed https://github.com/allenai/allennlp-semparse/pull/23 which removed a .float() that turned out to be the necessary change.
This now successfully answers questions from tables for me:
I'm sure I must just be missing an installation step, but it looks like the base class in model.py really does not have a
decode
method:from allennlp_semparse import predictors, models