cooelf / SemBERT

Semantics-aware BERT for Language Understanding (AAAI 2020)
https://arxiv.org/abs/1909.02209
MIT License
285 stars 55 forks source link

srl is not a registered name for model #11

Closed summerstay closed 4 years ago

summerstay commented 4 years ago

When I try to run "evaluation using raw data" using the given command (changing only the data_dir to /glue_data/SNLI), I get this error:

f"{name} is not a registered name for {cls.name}. " allennlp.common.checks.ConfigurationError: srl is not a registered name for Model. You probably need to use the --include-package flag to load your custom code. Alternatively, you can specify your choices using fully-qualified paths, e.g. {"model": "my_module.models.MyModel"} in which case they will be automatically imported correctly.

summerstay commented 4 years ago

I solved this with the command pip install --pre allennlp-models