yao8839836 / kg-bert

KG-BERT: BERT for Knowledge Graph Completion
Apache License 2.0
679 stars 141 forks source link

How to use the model for free text? #17

Open DevinXZhou opened 4 years ago

DevinXZhou commented 4 years ago

Hello! You work is amazing. I wonder how to create a pipeline in order to generate a knowledge graph from a full article? Should I exhaustively group up words into triples, and then feed into this model for classification? or if there is any other easier ways?

yao8839836 commented 3 years ago

@DevinXZhou

Thank you!

Your idea sounds feasible, The main problem is how to group up words into triples, maybe using Named Entity Recognition to detect entities and treating verbs as relations. KG-BERT can help judge the resulting triples.