Closed calebjacksonhoward closed 3 years ago
Thanks for reporting this bug. True, I didn't see this because of the cached file... The path should be a pickle file that saves a python dictionary as such: {entity: frequence}, which is used to perform negative entity sampling. And a similar issue may be found when loading entity and relation vocabularies.
Thank you for the clarification!
The declaration of
get_ent_freq()
inpretrain/utils.py
:requires a
path
parameter be passed, but line94
ofpretrain/run_pretrain.py
:does not pass a path. So I am getting an error:
What file should I pass to
get_ent_freq()
to avoid this error?[edit] It seems like the author may not see this call fail due to a cached result locally, perhaps; looking at the decorator:
which decorates
get_ent_freq()
Thanks for any clues.