Closed Filco306 closed 3 years ago
There is no setting to directly achieve this. But, the function kge_model.score_spo()
takes vectors of indices as input. If you would like to have a model with a specific scorer that only takes those indices as input you could overwrite this function inside your model and just directly call the score function with the indices instead of the embeddings.
You would need to do this for all score functions of kge_model, I think.
@rgemulla should we extend the signature of the scoring functions to take the indices as well or maybe allow for further keyword arguments?
The goal of the scorer is to abstract away indexes and solely work with embeddings. To score based on indexes, a scorer is not needed: simply extend KgeModel and override the score_* functions (which do obtain indexes) in your subclass.
Thank you for this! I love the great support for this package! :D
Hello,
I was wondering; is there any setting that would allow taking in the actual entity (and relation) indices to the scoring function, and use the lookup embeddings directly in the scorer instead?
Thanks :)