issues
search
TheAnig
/
NER-LSTM-CNN-Pytorch
End-to-end-Sequence-Labeling-via-Bi-directional-LSTM-CNNs-CRF-Tutorial
45
stars
13
forks
source link
parameters['crf'] = 0, disabling crf gives error
#3
Open
gashutosh85
opened
3 years ago
gashutosh85
commented
3 years ago
in
() 60 #count % (eval_every*4) == 0 and count < (eval_every * 20): 61 model.train(False) ---> 62 best_train_F, new_train_F, _ = evaluating(model, train_data, best_train_F,"Train") 63 best_dev_F, new_dev_F, save = evaluating(model, dev_data, best_dev_F,"Dev") 64 if save: 2 frames
in get_chunk_type(tok, idx_to_tag) 13 """ 14 ---> 15 tag_name = idx_to_tag[tok] 16 tag_class = tag_name.split('-')[0] 17 tag_type = tag_name.split('-')[-1]