Heidelberg-NLP / COINS

The corresponding code from our paper " COINS: Dynamically Generating COntextualized Inference Rules for Narrative Story Completion (ACL 2021)". Do not hesitate to open an issue if you run into any trouble!
17 stars 2 forks source link

error when load the data #2

Open 1245244103 opened 2 years ago

1245244103 commented 2 years ago

I run the following script to load the data:

python scripts/data/make_conceptnet_data_loader.py

However,it reminded me "No such file or directory: 'data/conceptnet//train100k.txt'" Then,i run the script as the instruction of the COMET:

bash scripts/setup/get_conceptnet_data.sh

Successfully,i got the train100k.txt.Then I run the script to load the data again. This time, another problem arose.

Traceback (most recent call last):
  File "scripts/data/make_conceptnet_data_loader.py", line 67, in <module>
    data_loader.load_data("data/conceptnet/")
  File "/data/yj/COINS-main/model/src/data/conceptnet.py", line 72, in load_data
    [(i[0].lower().strip(), i[1].lower().strip(), i[2].lower().strip(), i[3].lower().strip(), i[4].lower().strip(), i[5].lower().strip(), i[6].lower().strip(), i[7].lower().strip(), i[8].lower().strip(), i[9].lower().strip(), i[10].lower().strip()) for i in tuples]
  File "/data/yj/COINS-main/model/src/data/conceptnet.py", line 72, in <listcomp>
    [(i[0].lower().strip(), i[1].lower().strip(), i[2].lower().strip(), i[3].lower().strip(), i[4].lower().strip(), i[5].lower().strip(), i[6].lower().strip(), i[7].lower().strip(), i[8].lower().strip(), i[9].lower().strip(), i[10].lower().strip()) for i in tuples]
IndexError: list index out of range
Li-Z-Q commented 2 years ago

i met the same error

1754699523 commented 1 year ago

I met the same error,do you slove it?

debjitpaul commented 1 year ago

What is the format of the data? Please check the baseline format: https://github.com/Heidelberg-NLP/COINS/tree/main/data/baseline