Closed neolifer closed 3 years ago
Looks like it has to do with the allennlp version as i notice the configuration style changed after v1.0. So i tried to install the right version which is 0.9.0 but it still wont work. The error message now is TypeError: ArrayField.empty_field: return type None
is not a <class 'allennlp.data.fields.field.Field'>
. Then i tried the newest version but the pretrained model with newest version is too large to run.
Problem solved by install allennlp-models and replace spacy with version 2.2.1.
The following is what i did.
pip install allennlp==0.9.0
pip install -U allennlp-models
pip install allennlp==0.9.0
pip install spacy==2.2.1
pip install -U nltk
Then replace the predictor in qa.problem by
self.predictor = allennlp.pretrained.neural_coreference_resolution_lee_2017()
ConfigurationError Traceback (most recent call last)