Closed lighteternal closed 4 years ago
This model is not compatible with allennlp 0.9 - it requires the master branch. Sorry about that!
Thank you for the prompt reply. I understand that this is a foreseen update listed in the v1.0 prerelease notes. So by cloning the master branch, the import procedure is identical to the v0.9 one?
Should be, yes.
Will try then, many thanks!
Update: It works with allennlp v.0.9.1.
Hi, While trying to execute a simple query for co-reference resolution using the latest bert-lstm model as follows:
I get this configuration error:
ConfigurationError: "pretrained_transformer_mismatched not in acceptable choices for model.text_field_embedder.token_embedders.tokens.type: ['embedding', 'character_encoding', 'elmo_token_embedder', 'elmo_token_embedder_multilang', 'openai_transformer_embedder', 'bert-pretrained', 'language_model_token_embedder', 'bidirectional_lm_token_embedder', 'bag_of_word_counts', 'pass_through']"
This error does not appear while using the older coref-model-2018.02.05 model. I suspect that the new model misses some of the classes that the old one had. Can you please advise? Many thanks