bi-lstm-crf-ner-tf2.0 icon indicating copy to clipboard operation
bi-lstm-crf-ner-tf2.0 copied to clipboard

Named Entity Recognition (NER) task using Bi-LSTM-CRF model implemented in Tensorflow 2.0(tensorflow2.0 +)

Results 10 bi-lstm-crf-ner-tf2.0 issues
Sort by recently updated
recently updated
newest added

Traceback (most recent call last): File "C:/Users/87124/PycharmProjects/bilstm-crf-ner-tf2.0/model.py", line 8, in import tensorflow_addons as tf_ad File "C:\Users\87124\.conda\envs\tensorflow2.0.0\lib\site-packages\tensorflow_addons\__init__.py", line 21, in from tensorflow_addons import activations File "C:\Users\87124\.conda\envs\tensorflow2.0.0\lib\site-packages\tensorflow_addons\activations\__init__.py", line 17, in from tensorflow_addons.activations.gelu...

I noticed that you implemented the training process by your customer functions `train_one_step` and `evaluate_one_step`. Is there a particular reason that you did not use ` model.fit`?

这是输出的日志记录,代码没有动过 `input:我是范冰冰 dataset: [[ 131 2067 3239 2234 2234]] logits [[[-0.72535753 4.161972 -2.9507422 -3.1868236 -3.2397275 -3.269389 -3.0774546 -3.2384624 -3.2812405 -2.9897215 -3.1217413 -3.6321018 -3.1315987 -3.0792222 ] [-2.8050935 4.9421215 -2.3537152 -2.844575 -2.8227744...

i tried on my environment with tensorflow 2.3 and tensorflow-addons 11.2, encountered exceptions. do you have plan to upgrade the code? screenshot pasted below: : Invalid argument: slice index 0...

I use my own data ``` [-INFO-] 2020-08-18 17:03:03,229 31422 train. line:80 epoch 22, step 880, loss -102.3357 , accuracy 0.8097 [-INFO-] 2020-08-18 17:03:08,052 31422 train. line:80 epoch 23, step...

这种分类问题,使用precision 和 recall 作为 metrics 会比较好;假如训练数据中绝大多数都是O,那么acc一开始就会很高,不能准确反应模型的能力啊

tensorflow:7 out of the last 7 calls to triggered tf.function retracing. Tracing is expensive and the excessive number of tracings is likely due to passing python objects instead of tensors....

ValueError: tf.function-decorated function tried to create variables on non-first call.

is problem at calculate loss debugged accuracy ,feeling it's ok

train.py里面在线评估没用到 predict.py里面离线预测也没用到 得用用吧~