yym6472 / bert_slot_tagging Goto Github PK
View Code? Open in Web Editor NEW用预训练BERT实现序列标注模型。
用预训练BERT实现序列标注模型。
Hello, I will delete the encoder in the configuration file.
After training through train.py, run test.py, the following error appears.
Traceback (most recent call last):
File "E:/PycharmWorkSpace/GithubCode/bert_slot_tagging-master/test.py", line 28, in
main(args)
File "E:/PycharmWorkSpace/GithubCode/bert_slot_tagging-master/test.py", line 20, in main
predictor = Predictor.from_archive(archive=archive, predictor_name="bert_st")
File "F:\Anaconda\envs\python36\lib\site-packages\allennlp\predictors\predictor.py", line 288, in from_archive
return Predictor.by_name(predictor_name)(model, dataset_reader)
File "F:\Anaconda\envs\python36\lib\site-packages\allennlp\common\registrable.py", line 97, in by_name
raise ConfigurationError(f"{name} is not a registered name for {cls.name}. "
allennlp.common.checks.ConfigurationError: 'bert_st is not a registered name for Predictor. 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.'
Looking forward to your reply, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.