I have been new to Machine Learning and I'm trying to implement a Knowledge Graph and use it for search purposes (Just like Google and Bing does). This is my approach to it. I have some text documents with me. I'm familiar with python.
Steps:
- Extract triples from the text document. I'm thinking to use Stanford OpenIE for this. (Any better library available for python? ).
After extracting triples and loading them in csv, my data looks something like this:
Subject relation predicate
New Delhi IS_CAPITAL India
India Gate IS_LOCATED New Delhi
India HAS_STATES 29
Hyderabad IS_CAPITAL Telangana
Charminar IS_LOCATED Telangana
2. Import the dataset to python and train it according to any model like TransH, TransE, ComplEx etc. 3.Then train it using Tensorflow and Ampligraph library (Ampligraph Example).
Now once i get the embedded model, How can i use it to answer a search query? How can i store my model in a database and what database should i use for this purpose?
Thank you.
Ps. You can visit the link of "Ampligraph Example" to know what kind of model is generated after training.