fabrahman / Emo-Aware-Storytelling

Code repository for our EMNLP 2020 long paper "Modeling Protagonist Emotions for Emotion-Aware Storytelling" (https://arxiv.org/abs/2010.06822)
MIT License
19 stars 6 forks source link

Question about the run_emorl.sh #4

Closed xinli2008 closed 3 years ago

xinli2008 commented 3 years ago

Hello, your job is excellent ,i am trying to reproduce your project . when i do :bash run_emotl.sh ,It prompts for an error message: Traceback (most recent call last): File "train_rl.py", line 36, in from Reinforcement.rewards_v2 import get_reward, format_generated_stories_for_clf, _get_text, generate_all_valid_sample_dict File "/home/lixin/Emo-Aware-Storytelling-master/Reinforcement/rewards_v2.py", line 39, in with open(os.path.join(SCORE_PATH, 'word2index.pkl'), 'rb') as f: FileNotFoundError: [Errno 2] No such file or directory: 'comet-commonsense/precomputed_similarities/word2index.pkl'

and in you code ,you write : SCORE_PATH = 'comet-commonsense/precomputed_similarities/' with open(os.path.join(SCORE_PATH, 'word2index.pkl'), 'rb') as f: word2ind = pickle.load(f)

Because i found no useful information in comet , so i wonder if you miss some necessary data? can you give me some useful advide ? Thank you very much ! @fabrahman

fabrahman commented 3 years ago

Please find the requested files here. I will update the readme.

xinli2008 commented 3 years ago

Thank you very much! wish you have a nice day! ^^^