LiuHuiwen / Pairwise-Word-Interaction-Modeling-by-Tensorflow-1.0

3 stars 1 forks source link

关于simCube #2

Open barrierye opened 5 years ago

barrierye commented 5 years ago

hi,作者你好~ 你的代码中构建simCube(Pairwise Word Interaction Modeling)与原文有较大差异,最后没有达到原文的效果会不会是这个原因?

barrierye commented 5 years ago

这篇文章(Neural Network Models for Paraphrase Identification, Semantic Textual Similarity, Natural Language Inference, and Question Answering)对PWIM模型做了复现(代码在https://github.com/lanwuwei/SPM_toolkit/blob/master/PWIM/model.py)。由于初学,我根据他的torch代码改写tensorflow/paddlepaddle版的过程中遇到一些问题:构建simCube过程中需要用到一些数据端的值(向量长度),但组网过程中拿不到这个值,你有什么好的方法吗?