Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么+1 num_labels=len(label_list) + 1 #6

Open
crystal0913 opened this issue May 29, 2019 · 1 comment
Open

为什么+1 num_labels=len(label_list) + 1 #6

crystal0913 opened this issue May 29, 2019 · 1 comment

Comments

@crystal0913
Copy link

为什么模型输出要比label_list多一个呢
https://github.com/FuYanzhe2/Name-Entity-Recognition/blob/master/BERT-BiLSTM-CRF-NER/bert_lstm_ner.py#L652

@yishen-zhao
Copy link

这个好像是他的label_map是从1开始计算的,而不是0;
bert_latm_ner.py:263

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants