Closed shihuanting closed 3 years ago
Replace this line:
import allennlp_models.tagging
with this
import allennlp_models.structured_prediction
I'll also add that Windows is not officially supported (but it may work for you anyways).
@dirkgr this is just a friendly ping to make sure you haven't forgotten about this issue 😜
I havr a problem,hope you can give me some advice
error output:
allennlp.common.checks.ConfigurationError: srl not in acceptable choices for dataset_reader.type: ['babi', 'conll2003', 'interleaving', 'multitask', 'sequence_tagging', 'sharded', 'text_classification_json', 'multitask_shim', 'ccgbank', 'conll2000', 'ontonotes_ner']. You should either use the --include-package flag to make sure the correct module is loaded, or use a fully qualified class name in your config file like {"model": "my_module.models.MyModel"} to have it imported automatically.
Thank you for your reply