terrifyzhao / text_matching

常用文本匹配模型tf版本,数据集为QA_corpus,持续更新中
Apache License 2.0
674 stars 186 forks source link

bimpm attentive_match #11

Open Fisher87 opened 4 years ago

Fisher87 commented 4 years ago

https://github.com/terrifyzhao/text_matching/blob/14c1a8f60aad822cd7029474b241bd6200a8782d/bimpm/graph.py#L57 这个地方应该有问题吧?是不是应该这样 tf.norm(metric1, axis=-1, keep_dims=True) * tf.transpose(tf.norm(metric2, axis=-1, keep_dims=True), perm=[0, 2, 1])