malllabiisc/InteractE

How to change heads in the test phrase?

quqxui opened this issue · 1 comments

Hi, i am not quite understand how to change heads using the one-to-n socre function in the test?
I found this code :
self.triples['{}_{}'.format(split, 'head')].append({'triple': (obj, rel_inv, sub), 'label': self.sr2o_all[(obj, rel_inv)]})
Is it relevant with that?

Looking forward to your reply. Thank you !!!

I found how to achieve it in TuckER.