xinyuan-liu / Chinese-NER

CNN-LSTM-CRF Sequence Tagging. 炼丹系列。
21 stars 15 forks source link

hi,when i train the train.py ,the following conditions occurred #3

Open lyfree132 opened 7 years ago

lyfree132 commented 7 years ago

Traceback (most recent call last): File "train.py", line 76, in model.load_weights('model.weights') File "D:\ProgramData\Anaconda2\lib\site-packages\keras\engine\topology.py", li ne 2619, in load_weights load_weights_from_hdf5_group(f, self.layers) File "D:\ProgramData\Anaconda2\lib\site-packages\keras\engine\topology.py", li ne 3093, in load_weights_from_hdf5_group ' elements.') ValueError: Layer #5 (named "chain_crf_1" in the current model) was found to cor respond to layer chaincrf_1 in the save file. However the new layer chain_crf_1 expects 3 weights, but the saved weights have 2 elements.