Closed mcneela closed 4 years ago
allennlp.common.checks.ConfigurationError: 'key "options_file" is required at location "model.text_field_embedder.token_embedders.elmo."' when load predictor = Predictor.from_path("https://s3-us-west-2.amazonaws.com/allennlp/models/fine-grained-ner-model-elmo-2020.02.10.tar.gz")
Understood, but is there a solution to it, passing options file like an argument or saving in a specific location for the predictor to detect it?
Older models have no problem when loaded in the predictor.
Solution: use a released version of allennlp. We are currently moving things around and making breaking changes, in preparation for a major new release (hopefully we'll have a release candidate out within a couple of weeks).
This repository is going to be deleted soon, as we decided on a different solution to the problem this repo was trying to solve. The new solution is this repo: https://github.com/allenai/allennlp-models. I would warn you, though, to not rely on anything you see in any of these repos until a release candidate is out, as things are still in flux. The released version is stable, and it will be stable again once we have another release out.
I'm getting the following error when trying to load the pretrained NER model
How do I pass the
options_file
to the ELMO model? I tried passing it as a json key in theoverrides
argument of theload_archive
method, but to no avail.