Giter Site home page Giter Site logo

Comments (3)

desfc avatar desfc commented on May 26, 2024

报错内容:
………………
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,0] = 57 is not in [0, 49)
[[{{node task2_msr/crf_layer/GatherV2_1}}]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:/kg_projects/ChineseNER-bert-bilstm-crf/ChineseNER-main/main.py", line 150, in
multitask_train(args)
File "E:/kg_projects/ChineseNER-bert-bilstm-crf/ChineseNER-main/main.py", line 110, in multitask_train
tf.estimator.train_and_evaluate(estimator, train_spec, eval_spec)
File "C:\Users\return0.conda\envs\ChineseNER-main\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 473, in train_and_evaluate
return executor.run()
………………
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,0] = 57 is not in [0, 49)
[[node task2_msr/crf_layer/GatherV2_1 (defined at E:\kg_projects\ChineseNER-bert-bilstm-crf\ChineseNER-main\tools\layer.py:126) ]]
………………

请问是什么原因呀?

from chinesener.

desfc avatar desfc commented on May 26, 2024

感觉出现这个报错的原因是msr数据集。因为多任务NER只要使用msr数据集就会报上面的错,但是单任务NER使用msr数据集却不会报错。
此外使用bert_bilstm_crf_adv模型进行其它多任务NER并不会报这个错,msra数据集用在其它NER任务中也不会报错

from chinesener.

DSXiangLi avatar DSXiangLi commented on May 26, 2024

@fengxuefx 辛苦发一下你的运行脚本吧

from chinesener.

Related Issues (20)

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.