circle-hit / KBCIN

Code for AAAI 2023 accepted paper titled "Knowledge-Bridged Causal Interaction Network for Causal Emotion Entailment"
11 stars 1 forks source link

your_data.txt missing? #3

Open island-jie opened 1 year ago

island-jie commented 1 year ago

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?

circle-hit commented 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!

island-jie commented 1 year ago

Thank you for your reply, and the problem has been solved. But there are two problems when running your training scripts :

  1. I can't find the file named emotion_embedding.pkl. 2、One error occured in func collate_fn() of the dataloader.py, the error is shown as follows: TypeError: pad_sequence(): argument 'sequences' (position 1) must be tuple of Tensors, not Series

I hope to get your reply, thank you!

circle-hit commented 1 year ago

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.

island-jie commented 1 year ago

The problem has been solved. Thank you very much!