cooelf / SemBERT

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

Error: online data annotation #18

Closed Wangpeiyi9979 closed 3 years ago

Wangpeiyi9979 commented 4 years ago

你好,我想使用bert_srl进行srl标注,因此我下载了您给定的链接,下载下来后,里面有3个文件 config.json vocabulary/ weights.th 我将这3个文件放在一个文件夹bert_srl下,路径为xxx/xxx/bert_srl

最后我在运行run_classifier.py时加入--tagger_path xxx/xxx/bert_srl 可是却得到 allennlp.common.checks.ConfigurationError: srl_bert is not a registered name for Model. You probably.. 这样的错误,请问具体应该怎么操作呢

cooelf commented 4 years ago

你好 allennlp相关的问题可以参考对应仓库的issues 我之前用的是elmo的版本,印象中也遇到过这个问题,可能跟allennlp或models的版本有关