dfdazac / blp

"Inductive Entity Representations from Text via Link Prediction" @ The Web Conference 2021
MIT License
58 stars 6 forks source link

Advice #6

Closed QingzhiHu closed 2 years ago

QingzhiHu commented 2 years ago

In "Using your own data" section:

" To generate inductive splits, you can use data/utils.py. If you run

python utils.py drop_entities --file=my-kg/all-triples.tsv " Since there is also a utils.py inside of the root folder which may cause confusion with the utils.py inside of the data folder (although it is specifically mentioned to use data/utils.py, however the command below needs to be executed inside of data folder while other commands all operate on the root folder level). Solutions:

Solution 1 (best): python ./data/utils.py drop_entities --file=/data/my-kg/all-triples.tsv

Solution 2: cd data python utils.py drop_entities --file=my-kg/all-triples.tsv

dfdazac commented 2 years ago

Thanks @QingzhiHu , I agree this is confusing. I fixed it with your solution 1.