chenxiaoyouyou / Bert-BiLSTM-CRF-pytorch

使用谷歌预训练bert做字嵌入的BiLSTM-CRF序列标注模型
MIT License
458 stars 100 forks source link

为什么要tagset+2 #4

Open 980202006 opened 5 years ago

980202006 commented 5 years ago
    self.liner = nn.Linear(hidden_dim*2, tagset_size+2)
xuanzebi commented 5 years ago

因为crf 会有 start 和 stop

980202006 commented 5 years ago

谢谢

ysgncss commented 4 years ago

请问单字符标签怎么表示? 没有 S tag?

xiaoshijian commented 4 years ago

请问crf输入的训练数据是包括start和stop的吗?

ruleGreen commented 4 years ago

这个不对吧,tag.TXT里面已经存在start 和 eos,不需要再次进行 + 2 操作

yogattt commented 2 years ago

对啊,我也觉得这里不需要+2