KaijuML / rotowire-rg-metric

Code for the RG metric of Challenges in Data-to-Document Generation (Wiseman, Shieber, Rush; EMNLP 2017)
7 stars 2 forks source link

FileNotFoundError: [Errno 2] No such file or directory: './data/rotowire/output/training-data.dict' #5

Closed Skinny-Joey closed 1 year ago

Skinny-Joey commented 1 year ago

Hi, I'd like to download the pretrained model and to eval directly. But after I run: python data_utils.py \ -mode prep_gen_data \ -test \ -gen_fi $ROTOWIRE/gens/$FILENAME \ -dict_pfx $ROTOWIRE/output/training-data \ -output_fi $ROTOWIRE/output/prep_predictions.h5 \ -input_path $ROTOWIRE/json There is a error been reported: Traceback (most recent call last): File "data_utils.py", line 906, in <module> test=args.test) File "data_utils.py", line 486, in prep_generated_data with codecs.open(dict_pfx+".dict", "r", "utf-8") as f: File "/home/shanhoo3/anaconda3/envs/py3.7_torch/lib/python3.7/codecs.py", line 904, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: './data/rotowire/output/training-data.dict' So I look back and find out after I run: python data_utils.py \ -mode make_ie_data \ -input_path $ROTOWIRE/json \ -output_fi $ROTOWIRE/output/training-data.h5 There is only training-data.h5 in my $ROTOWIRE/output/ and I haven't found training-data.dict Am I doing something wrong?