Giter Club home page Giter Club logo

Comments (11)

classicsong avatar classicsong commented on August 22, 2024

The entity name to id mapping is supposed provided by the user or if you use dglke to train the model, it will generate one for you.
Are you use '--raw_data' ?
You can look at: https://dglke.dgl.ai/doc/predict.html for details of the command args of predict toolkit, and https://dglke.dgl.ai/doc/format_kg.html#format-of-user-defined-knowledge-graph for the format of input data.

from dgl-ke.

MathildaSu avatar MathildaSu commented on August 22, 2024

Hi, I did use dglke to train on FB15k, which did not generate a entities.dict for me.

from dgl-ke.

classicsong avatar classicsong commented on August 22, 2024

FB15k has entities.dict already after the dataset is downloaded: https://dglke.dgl.ai/doc/format_kg.html#format-of-built-in-knowledge-graph.

from dgl-ke.

MathildaSu avatar MathildaSu commented on August 22, 2024

I understand that.

However, when I use --raw_data, it asks me to provide mfile, which is the mapping file between entity name and the id in the model. Where this mfile which is entities.dict is not in the github repo, nor not in the data download link you provided. I can not select some option so that it allows me to "use system provided fb15k so I don't need to point to the mfile".

from dgl-ke.

classicsong avatar classicsong commented on August 22, 2024

It should be under data/FB15k/ if you have already use dglke_train to train the model.

from dgl-ke.

MathildaSu avatar MathildaSu commented on August 22, 2024

That's the problem. I trained it and it's not there.

from dgl-ke.

MathildaSu avatar MathildaSu commented on August 22, 2024

I followed each and every step in the notebook, and did not get a entities.dict. That's why I'm asking here. Thanks.

There is no FB15k folder, nor is there a entities.dict in the wikimedia folder.

from dgl-ke.

classicsong avatar classicsong commented on August 22, 2024

Did you find other files like: train.txt, valid.txt and test.txt?

from dgl-ke.

MathildaSu avatar MathildaSu commented on August 22, 2024

oh actually, it's just named differently. It's entities.tsv not .dict.

Sorry for asking the question

from dgl-ke.

classicsong avatar classicsong commented on August 22, 2024

Glad you have solved the problem:)

from dgl-ke.

MathildaSu avatar MathildaSu commented on August 22, 2024

Glad you have solved the problem:)

Can you please update the notebook, and the documentation.

Cheers

from dgl-ke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.