rguthrie3 / BiLSTM-CRF

BiLSTM-CRF for sequence labeling in Dynet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

transition matrix

kaya27 opened this issue · comments

commented

Hello!
thank you for sharing the code

can you please give me more explanation how to get Matrix that maps from Bi-LSTM output to num tags and Transition matrix for tagging layer

self.lstm_to_tags_params = self.model.add_parameters((tagset_size, hidden_dim))
self.transitions = self.model.add_lookup_parameters((tagset_size, tagset_size))