autoliuweijie / K-BERT

Source code of K-BERT (AAAI2020)
https://ojs.aaai.org//index.php/AAAI/article/view/5681
951 stars 213 forks source link

How can I use my own knowledge graph #19

Closed alokpadhi closed 4 years ago

alokpadhi commented 4 years ago

Any way to build a custom knowledge graph from a corpus of data and use that for training a multi-label classification?

alokpadhi commented 4 years ago

I solved it. Using textacy we can generate the SPO format and then simply write into the .spo file worked.

WenTingTseng commented 4 years ago

Can you elaborate on how to use textacy to generate the SPO format and then simply write into the .spo file worked. Thanks a lot for your help

phc4valid commented 3 years ago

Hi @alokpadhi , I'm also trying to build a knowledge graph and train on a multi-label classification task in the domain of health care. Is there any chance having the opportunity to discuss with you and have a look on the work ? Really want to implement it on a chinese data. I also want to change the pretrained LM to a higher performance one (etc:RoBERTa ...) combining with the knowledge graph mentioned in the article. Any suggestions ? Thanks for your timing reading and please stay safe ,looking forward to your voice, thanks alot.