ShomyLiu / pytorch_bert_elmo_example

A text classification example with Bert/ELMo/GloVe in pytorch
http://shomy.top/2019/01/01/elmo-1/
90 stars 13 forks source link

请问一下博主知道有ELMO+ESIM的组合开源项目吗? #3

Open 14H034160212 opened 4 years ago

14H034160212 commented 4 years ago

请问一下博主知道有ELMO+ESIM的组合开源项目吗?我搜了目前网上开源的项目,包括提出ELMO+ESIM这个思路的原论文Deep contextualized word representations也没有开源这个组合的代码,我想问一下博主您在这个项目中用到的ELMO+textCNN是不是也是类似ELMO+ESIM的这个架构?多谢了

ShomyLiu commented 4 years ago

你好,不好意思,这个组合没有用过。 简单搜了,好像差不多。 AllenNLP应该是有封装ESIM的,如果想用ELMo+ESIM只需要吧input encoder 改了就行的样子。 可以尝试: https://github.com/allenai/allennlp/blob/580dc8b0e2c6491d4d75b54c3b15b34b462e0c67/allennlp/models/esim.py

14H034160212 commented 4 years ago

你好,不好意思,这个组合没有用过。 简单搜了,好像差不多。 AllenNLP应该是有封装ESIM的,如果想用ELMo+ESIM只需要吧input encoder 改了就行的样子。 可以尝试: https://github.com/allenai/allennlp/blob/580dc8b0e2c6491d4d75b54c3b15b34b462e0c67/allennlp/models/esim.py

多谢!