ucasir / NPRF

NPRF: A Neural Pseudo Relevance Feedback Framework for Ad-hoc Information Retrieval
Apache License 2.0
32 stars 10 forks source link

No module named file_operation error! #6

Closed giangnguyen2412 closed 5 years ago

giangnguyen2412 commented 5 years ago

Dear authors,

Thank you for such a great paper and code sharing. I am running a command to train model following your instruction in README.MD but I am facing this error. I am supposing it comes from a custom library from you.

Screenshot from 2019-05-15 03-29-25

Could you please check it for fixing problem.

Thank you.

canjiali commented 5 years ago

Hi, the "file_operation.py" is right on the "utils" folder. You should enter the "model" folder then run "python nprf_drmm.py ...". The reason for this error is that we add a system path by "sys.path.append("../utils")" in MODEL.py, which help the system to find out where "file_operation" is. This can be revised in a more elegant way in the future version.

giangnguyen2412 commented 5 years ago

Thank you a lot.