guillaumegenthial / tf_ner

Simple and Efficient Tensorflow implementations of NER models with tf.estimator and tf.data
Apache License 2.0
923 stars 275 forks source link

InvalidArgumentError: labels contains negative values #61

Open Sirius5272 opened 5 years ago

Sirius5272 commented 5 years ago

hi, I am trying to run the model and get this Error: InvalidArgumentError (see above for traceback): assertion failed: [labels contains negative values] [Condition x >= 0 did not hold element-wise:] [x (Reshape_10:0) = ] [-1 2 2...] [[node confusion_matrix_2/assert_non_negative/assert_less_equal/Assert/AssertGuard/Assert (defined at /home/fdse/anaconda3/envs/xjz/lib/python3.6/site-packages/tf_metrics/init.py:130) ]] [[node cond/rnn_1/while/GreaterEqual (defined at main.py:131) ]]

Can u please guide me? And thanks for your work!