Bert-BiLSTM-CRF-pytorch icon indicating copy to clipboard operation
Bert-BiLSTM-CRF-pytorch copied to clipboard

为什么要tagset+2

Open 980202006 opened this issue 4 years ago • 6 comments

    self.liner = nn.Linear(hidden_dim*2, tagset_size+2)

980202006 avatar Aug 25 '19 13:08 980202006

因为crf 会有 start 和 stop

xuanzebi avatar Sep 03 '19 09:09 xuanzebi

谢谢

980202006 avatar Sep 04 '19 06:09 980202006

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

ysgncss avatar Apr 17 '20 03:04 ysgncss

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

xiaoshijian avatar Jun 15 '20 02:06 xiaoshijian

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

ruleGreen avatar Jul 09 '20 05:07 ruleGreen

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

yogattt avatar Jun 20 '22 04:06 yogattt