BERT-NER icon indicating copy to clipboard operation
BERT-NER copied to clipboard

when i predict on my test data set ,i got this problem.

Open ohho-zb opened this issue 5 years ago • 7 comments

ValueError: Assignment map with scope only name dense_37 should map to scope only dense_37/bias. Should be 'scope/': 'other_scope/'.

ohho-zb avatar Apr 28 '19 02:04 ohho-zb

facing same problem

Wanjun0511 avatar Jun 14 '19 09:06 Wanjun0511

Got same problem.

semal avatar Jul 31 '19 09:07 semal

Got same problem.

fengchangmin666 avatar Aug 07 '19 09:08 fengchangmin666

I am also searching for the parser to parse new raw text and convert it into the format that the model is able to take in. Any reference?

I made it, will update the results later.

Realvincentyuan avatar Sep 26 '19 05:09 Realvincentyuan

Excuse me. Where does the label_test.txt come from? Man made or machine generated?

zwd13122889 avatar Oct 21 '19 14:10 zwd13122889

Same problem. When i loaded the saved checkpoint to predict on the test set, i got this error message:

ValueError: Assignment map with scope only name dense_37 should map to scope only dense_37/bias. Should be 'scope/': 'other_scope/'.

LittleSJL avatar Jul 29 '20 08:07 LittleSJL

Same problem. When i loaded the saved checkpoint to predict on the test set, i got this error message:

ValueError: Assignment map with scope only name dense_37 should map to scope only dense_37/bias. Should be 'scope/': 'other_scope/'.

Well, i solved the problem by changing the code 'tf.keras.layers.Dense' to 'tf.layers.dense'

It seems that when adding an additional layer on top of Bert model, using tf.layers.dense would be a better one.

LittleSJL avatar Jul 30 '20 01:07 LittleSJL