Giter VIP home page Giter VIP logo

bert_slot_tagging's People

Contributors

yym6472 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bert_slot_tagging's Issues

bert_st is not a registered name for Predictor.

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.