Comments (3)
报错内容:
………………
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.
感觉出现这个报错的原因是msr数据集。因为多任务NER只要使用msr数据集就会报上面的错,但是单任务NER使用msr数据集却不会报错。
此外使用bert_bilstm_crf_adv模型进行其它多任务NER并不会报这个错,msra数据集用在其它NER任务中也不会报错
from chinesener.
@fengxuefx 辛苦发一下你的运行脚本吧
from chinesener.
Related Issues (20)
- bert_bilstm_crf_adv:ValueError: Shape must be rank 2 but is rank 1 for 'task1_msra/crf_layer/Slice_2' (op: 'Slice') with input shapes: [?], [2], [2]. HOT 6
- hello,我想用自己的数据进行复现,需要哪些步骤 HOT 1
- 数据预处理,为什么提示 ModuleNotFoundError: No module named 'data' HOT 2
- ValueError: Couldn't find 'checkpoint' file or checkpoints in given directory ./pretrain_model/ch_google\bert_model.ckpt HOT 4
- HELP HOT 2
- tensorboard --logdir ./checkpoint/ner_msra_bert_bilstm_crf HOT 5
- docker HOT 2
- 关于bert下的数据增强 HOT 2
- FileNotFoundError: [Errno 2] No such file or directory: './data/msra\\train\\sentences.txt'
- pretrain_model/lattice/word_char_mix_50d.vec没有找到下载链接 HOT 1
- glove词频
- 如何在tensorboard中加入Overall f1,precision,recall等指标 HOT 5
- 你好,运行对应数据集preprocess.py,并没有生产对应的tfrecord和data_params,是哪里有问题吗 HOT 2
- 1 HOT 11
- 复现的问题 HOT 5
- 维度的问题 HOT 2
- def init_params(self) HOT 1
- ctb.50d.vec文件没找到。 data/msra/preprocess.py HOT 2
- tf版本问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinesener.