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

The pred_ids of `<pad>` is always zero #54

Open lzhenboy opened 5 years ago

lzhenboy commented 5 years ago

When estimator. predict() is used, the pred_ids of <pad> is always zero. However, if serve.py is used to predict one sample, the pred_ids of <pad> will be the correct value. Can you or someone explain this problem? thx