Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of kg.txt #5

Open
shanthansuresh opened this issue Jul 11, 2019 · 12 comments
Open

Creation of kg.txt #5

shanthansuresh opened this issue Jul 11, 2019 · 12 comments

Comments

@shanthansuresh
Copy link

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

@hwwang55
Copy link
Owner

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.

@shanthansuresh
Copy link
Author

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

@Amy-hh-711
Copy link

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

@rituk
Copy link

rituk commented Apr 27, 2022

@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.

@hwwang55
Copy link
Owner

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

@rituk
Copy link

rituk commented Apr 27, 2022

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.

@hwwang55
Copy link
Owner

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

@rituk
Copy link

rituk commented Apr 27, 2022

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

@hwwang55
Copy link
Owner

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.

@rituk
Copy link

rituk commented Apr 27, 2022

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

@hwwang55
Copy link
Owner

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.

@rituk
Copy link

rituk commented Apr 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants