Hannibal046 / NMT_with_contrastive_memories

[EMNLP2022] Source code for Neural Machine Translation with Contrastive Translation Memories
11 stars 1 forks source link

.pkl file format not correct #2

Open pratik443 opened 5 months ago

pratik443 commented 5 months ago

Hello, so i have used bm25.py and it creates the .pkl file, now when i use editdis_retrieval.py when it goes to open the .pkl file it shows the error
bm25_dict = pickle.load(open('/hdd/zaki/Pratik/contrasmem/NMT_with_contrastive_memories/custom/data/retrieval/bm25_src.pkl','rb')) _pickle.UnpicklingError: invalid load key, '['.

pratik443 commented 5 months ago

Hii, i guess the error is there in bm25 as it just writing the list rather than dict format