KGCN icon indicating copy to clipboard operation
KGCN copied to clipboard

Creation of kg.txt

Open shanthansuresh opened this issue 4 years ago • 12 comments

Hello Wang, How do we create the knowledge graph file (kg.txt) if we are to train this network on a movieLens 100k dataset?

shanthansuresh avatar Jul 11 '19 06:07 shanthansuresh

Hi! I think you can first have a check that if every movie in MovieLens-100k shows up in the kg.txt file. You may delete movies that are not contained in kg.txt from MovieLens-100k for simplicity. Otherwise, you may resort to other open source knowledge graphs to extract triplets for these missing movies.

hwwang55 avatar Jul 11 '19 18:07 hwwang55

Hi, Thanks for the quick response. Do you mind suggesting some open source reference to create the KG.

shanthansuresh avatar Jul 11 '19 23:07 shanthansuresh

Do you know how to create kg.txt?Can you share it with me?

Amy-hh-711 avatar Sep 10 '19 15:09 Amy-hh-711

@hwwang55 can you provide steps on how to create a kg file for a new dataset instead of movie or music data? I tried but keep getting errors.

rituk avatar Apr 27 '22 00:04 rituk

Hi there, what type of datasets are you working on?

hwwang55 avatar Apr 27 '22 00:04 hwwang55

It's a dataset similar to movie dataset with user, article, rating, timestamp format. I am creating the kg to use for another algo test. They published the paper using the output of your data it seems.

rituk avatar Apr 27 '22 01:04 rituk

you need to find a KG that matches the items in your dataset, and then do the linking between entities and items.

hwwang55 avatar Apr 27 '22 02:04 hwwang55

What if I want to create a kg myself? Does your code expect to have each item exist in the kg.txt?

rituk avatar Apr 27 '22 03:04 rituk

Do you have the information to construct a KG for items? KG contains factual knowledge so it cannot be "created" but only "extracted" from available source of information. For example, you have the attributes of items, and these attributes can be connected to each other. Or, you have some natural texts describing these items, so you can use information extraction (IE) tools to extract a KG for these items.

hwwang55 avatar Apr 27 '22 03:04 hwwang55

Yes, I do have info like article, specialty, lead-concept etc.

rituk avatar Apr 27 '22 03:04 rituk

You need to extract information from articles, and see if the specialty and lead concept information you mentioned can form a graph. How to construct a KG is beyond the scope of this work, especially when you want to construct a KG from text. This is more on the NLP side.

hwwang55 avatar Apr 27 '22 04:04 hwwang55

Thank you, your tips helped me solve the issue. I am implementing CG-KGR algo with custom data.

rituk avatar Apr 28 '22 01:04 rituk