thu-keg / dackgr Goto Github PK
View Code? Open in Web Editor NEWSource codes and datasets for EMNLP 2020 paper "Dynamic Anticipation and Completion for Multi-Hop Reasoning over Sparse Knowledge Graph"
License: MIT License
Source codes and datasets for EMNLP 2020 paper "Dynamic Anticipation and Completion for Multi-Hop Reasoning over Sparse Knowledge Graph"
License: MIT License
Hi, there,
Would you suggest opening the code about how to get the NELL23K and WD-singer datasets?
And, did you download your Wikipedia data directly from the official website βhttps://www.wikidata.org/wiki/Wikidata:Database_download/enβ? Then, did you create the triple by integrate the entity and corresponding to the concept?
If this, such a dataset is also too sloppy!
When I run the command of ./experiment-emb.sh configs/nell23k-conve.sh --train 4, it raise the error of No such file or directory: 'data/NELL23K/train.large.triples', so I am not sure whether there is some missing about datasets of NELL23K?
Hello, I am trying to replicate the steps to train and test the model. After performing the data processing and pretraining of embeddings, I keep encountering the following runtime error when training the model for any dataset -
Epoch 0
Traceback (most recent call last):
File "/home/user/anaconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/user/anaconda3/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/user/DacKGR/DacKGR-master/src/experiments.py", line 822, in <module>
run_experiment(args)
File "/home/user/DacKGR/DacKGR-master/src/experiments.py", line 803, in run_experiment
train(lf)
File "/home/user/DacKGR/DacKGR-master/src/experiments.py", line 267, in train
lf.run_train(train_data, dev_data)
File "/home/user/DacKGR/DacKGR-master/src/learn_framework.py", line 96, in run_train
loss = self.loss(mini_batch)
File "/home/user/DacKGR/DacKGR-master/src/rl/graph_search/rs_pg.py", line 115, in loss
output = self.rollout(e1, r, e2, num_steps=self.num_rollout_steps, kg_pred=kg_pred)
File "/home/user/DacKGR/DacKGR-master/src/rl/graph_search/rs_pg.py", line 282, in rollout
e, obs, kg, kg_pred=kg_pred, fn_kg=self.fn_kg, use_action_space_bucketing=self.use_action_space_bucketing, use_kg_pred=self.use_state_prediction)
File "/home/user/DacKGR/DacKGR-master/src/rl/graph_search/pn.py", line 138, in transit
db_action_spaces, db_references = self.get_action_space_in_buckets(e, obs, kg, relation_att=relation_att, inference=inference)
File "/home/user/DacKGR/DacKGR-master/src/rl/graph_search/pn.py", line 289, in get_action_space_in_buckets
e_space_b, r_space_b, action_mask_b = self.get_dynamic_action_space(e_space_b, r_space_b, action_mask_b, e_b, relation_att[l_batch_refs])
File "/home/user/DacKGR/DacKGR-master/src/rl/graph_search/pn.py", line 208, in get_dynamic_action_space
relation_idx = torch.multinomial(relation_att, additional_relation_size)
RuntimeError: probability tensor contains either `inf`, `nan` or element < 0
free(): invalid pointer
./experiment-rs.sh: line 87: 560302 Aborted
Any pointers to solve this issue would be most helpful..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.