CWS icon indicating copy to clipboard operation
CWS copied to clipboard

Source code for an ACL2016 paper of Chinese word segmentation

Results 2 CWS issues
Sort by recently updated
recently updated
newest added

Thanks for you paper and code. But I'm confused with some code. In `src/model.py` function `get_score()` -> function `inner_one_step()` `update_gate = T.exp(T.dot(ugW[:ln+nhiddens,an+ln-nhiddens:an+ln+ln],com)+ugb[an+ln-nhiddens:an+ln+ln]).reshape((len+1,nhiddens))` and in `src/tools.py` function `get_word()` `update_gate = np.exp(np.dot(ugW[:ln+ndims,an+ln-ndims:an+ln+ln],com)+ugb[an+ln-ndims:an+ln+ln]).reshape((len+1,ndims))`...

当我用dynet运行代码时,出现错误 word = dy.sum_cols(dy.cmult(update_gate,dy.reshape(comb,(self.options['ndims'],wlen+1)))) AttributeError: 'module' object has no attribute 'sum_cols'