memray / OpenNMT-kpg-release

Keyphrase Generation
MIT License
217 stars 34 forks source link

Can't find magkp20k.vocab.pt #27

Closed sjchasel closed 3 years ago

sjchasel commented 3 years ago

I downloaded the recently updated code and ran it. I can run ·source kp_convert.sh successfully. But when I run python preprocess.py -config config/preprocess/config-preprocess-keyphrase-kp20k.yml , it reported a error : AssertionError: Please check path of your src vocab!。 It seems like The src_vocab address is specified in the yml file, but there is no magkp20k.vocab.pt file at that address (data/keyphrase/meng17/magkp20k.vocab.pt) . Should I use data/keyphrase/meng17/kp20k.vocab.pt or What else should I do?

memray commented 3 years ago

kp20k.vocab.pt should work similarly. I upload the magkp20k vocab here.

sjchasel commented 3 years ago

Thank you very much!