Closed mdabedr closed 3 years ago
I am getting the following error all of a sudden
TypeError: forward() got an unexpected keyword argument 'embeddings'
Do I have to retrain the model?
I am getting the following error all of a sudden
TypeError: forward() got an unexpected keyword argument 'embeddings'
Do I have to retrain the model?
Its hard to tell what the error is using just that information. You might need to check out the full stack trace.
You shouldn't need to retrain the embeddings if the dimensions are the same.
Here's the stack trace
Traceback (most recent call last):
File "./run_open_world.py", line 180, in
For relation prediction, after I get the [B, R] tensor back, it gives a bunch of values. Is sorting them and getting the highest value enough??
For relation prediction, after I get the [B, R] tensor back, it gives a bunch of values. Is sorting them and getting the highest value enough??
I believe that it should be enough. Those should be the scores with each relation.
I was wondering which parts of the code needs to be updated for the model to predict relations given head and tail entities