liuwei1206 / CCW-NER

Code for NAACL2019 paper "An Encoding Strategy Based Word-Character LSTM for Chinese NER".
66 stars 7 forks source link

取最长最短词向量那段代码有些疑问 #5

Closed yishen-zhao closed 5 years ago

yishen-zhao commented 5 years ago

gaz_embed.py:118

type = 1, short first; type = 2, long first;

if self.type == 1:

short first

        gaz_ids = gaz_seq_tensor[:, :, 0]

这段代码的含义不是取最长的词的序号么? 我没发现前面的代码有反转的操作?