Closed Crucialer closed 4 years ago
Hi, thanks for raising this issue.
The errors include one line (Line 309) in crf.py
Please try to use the following line to replace 308-309: partition = utils.switch(partition, cur_partition, mask[idx].view(bat_size, 1).expand(bat_size, self.tagset_size)).view(bat_size, -1)
Also, I am not sure whether you are using pytorch 0.4 or higher. Sorry that this repo only supports pytorch 0.3.x or lower.
I get it. Now I'm using pytorch 0.3. But when I download the embedding from http://bio.nlplab.org/, I find the embedding is garbled and I cannot read the vector from it . I don't know where I went wrong. Could the embedding from http://bio.nlplab.org/ is wrong?
Seems the embedding file from http://bio.nlplab.org/ is broken now.
Please directly use data_bioner_5/wikipedia-pubmed-and-PMC-w2v.txt.
ok,I succeed now. Thank you very much for your answers.
Hello,when I reproduce the results in your paper, I meet the following probelm: What can I do to solve it?