longlongman
longlongman
我对Infer-F1这个指标比较感兴趣,但是论文里谈论得不多,我个人猜测是只计算能组成类似“三角关系”的三元组(e.g. (A, r1, B), (B, r2, C), (A, r3, C))的性能?不知道是否有理解错?能否开源指标的计算代码?
代码与文章问题
很有意思的工作,但仔细阅读了实现的代码,有几个地方感觉没能理解,希望能获得解答。 1、在relationAttention.py里,计算attention时,使用的是softmax而不是sigmoid,这样获得的attention矩阵个人理解是无法完全拟合all_relations的,请问这里使用softmax是有什么原因么? 2、在entityRelation.py里,计算relation_loss时,为什么没有考虑all_input_mask,不考虑遮罩似乎在许多本来应该没有损失的地方多算了许多损失,请问这里是代码的失误么? 3、在文章3.5 Inference中判定两个实体间是否存在关系时,对头尾实体的token都进行了求和,可是为什么最后求delta时,只除了头实体的大小?
Hi, in the v1model.p4 https://github.com/p4lang/p4c/blob/master/p4include/v1model.p4, I found that there are just some extern declarations. 1) I want to know where their implementations are if I use the software target simple_switch....