Open island-jie opened 1 year ago
Thanks for your attention and I'm sorry for the missing. I have updated the file generate_knowledge.py now and you can use it to generate the commonsense knowledge you want. And the input file for the knowledge generative model can be obtained by the get_new_input_data() function in get_data.py.
Feel free to contact me for any other questions!
Thank you for your reply, and the problem has been solved. But there are two problems when running your training scripts :
TypeError: pad_sequence(): argument 'sequences' (position 1) must be tuple of Tensors, not Series
I hope to get your reply, thank you!
Q1: I have fixed it now and you can run the train.py to train the model. Q2: This may be caused by the different versions of Pytorch, whose input type of parameter 'sequences' varies in the pad_sequence() function. And the Pytorch version we perform experiments on is 1.8.2. You can try with that.
The problem has been solved. Thank you very much!
Excuse me.I am currently replicating your experimental code and running ./generateknowledge.py.I found that the missing data: your data.txt, is it convenient for you to provide it?