hwwang55 / PathCon

Combining relational context and relational paths for knowledge graph completion
MIT License
130 stars 29 forks source link

您好 请问npy文件的生成方式 #5

Open nxtabb opened 3 years ago

nxtabb commented 3 years ago

您好,请问可以告知一下 bert.npy文件的生成方式吗?十分感谢。 Hello,sir! Would you tell me how I can generate the bert.npy files by myself? Thank you very much!!

hwwang55 commented 3 years ago

您好,感谢您对我们工作的兴趣!bert.npy是由预训练好的bert得到的,可以直接使用bert-as-a-service。谢谢!

kalinin-sanja commented 3 years ago

您好,感谢您对我们工作的兴趣!bert.npy是由预训练好的bert得到的,可以直接使用bert-as-a-service。谢谢!

English, please :)

hwwang55 commented 3 years ago

bert.npy stores the bert embedding of each relations, which is output by a pretrained bert model. Please refer to bert-as-a-service for more details. Thanks!

chrislouis0106 commented 3 years ago

And, I google this key word "bert-as-a-service" and found this https://bert-as-service.readthedocs.io/en/latest/section/what-is-it.html. I think it will be helpful.