Closed andreaferretti closed 5 years ago
We've deprecated that parameter, so the old model doesn't work anymore. There's a new model that should work here: https://s3-us-west-2.amazonaws.com/allennlp/models/ner-model-2018.04.26.tar.gz.
One point in favor of @brendan-ai2's arguments about deprecating things...
Apparently, you have given me the same URL I had in my example :-?
we should probably direct people to allennlp.pretrained
Thank you very much, that works! You may want to update the documentation on https://allennlp.org/models
Thanks, I didn't realize the website was out of date. PR submitted.
I am loading my own trained model and getting the same error. Can you please tell me to overcome it?
I am using python 3.6.7 conda environment and allennlp version of 0.7.2 @joelgrus @matt-gardner
in the 0.8.0 release, the CrfTagger constraint_type
parameter was renamed to label_encoding
. But I don't think you should be getting this error in 0.7.2, can you post the full stack trace?
hi @joelgrus, when I use https://s3-us-west-2.amazonaws.com/allennlp/models/fine-grained-ner-model-elmo-2018.08.31.tar.gz, I get the same error , any model updated?
oops, should be https://s3-us-west-2.amazonaws.com/allennlp/models/ner-model-2018.12.18.tar.gz
Hello. @joelgrus
For Semantic Role Labeling , I get the same error when I use :
https://s3-us-west-2.amazonaws.com/allennlp/models/srl-model-2018.05.25.tar.gz
Please advice
"Extra parameters passed to {}: {}".format(class_name, self.params) allennlp.common.checks.ConfigurationError: Extra parameters passed to BasicTextFieldEmbedder: {'elmo': {'do_layer_norm': False, 'dropout': 0.1, 'options_file': '/tmp/tmps971tn46/fta/model.text_field_embedder.elmo.options_file', 'type': 'elmo_token_embedder', 'weight_file': '/tmp/tmps971tn46/fta/model.text_field_embedder.elmo.weight_file'}}
@dataminingLab-nlp, we're in the process of making some breaking changes to the library, and our saved models aren't going to be compatible with the new code. For now, if you want to use that model, just use a released version (0.9). You can also use this model with current code: https://storage.googleapis.com/allennlp-public-models/srl-model-2018.05.25-allennlpv1.0.tar.gz, though it is likely that there will be more breaking changes before the 1.0 release that will also invalidate this model.
@matt-gardner thank you for your prompt reply.
Describe the bug I am trying to run the included NER model, using the provided example code. I get the error
To Reproduce
Run the example code
Expected behavior Not to get an exception
System (please complete the following information):
Additional context
Full stacktrace: