wudapeng268 / KBQA-Adapter

Source code and data for our long paper (Wu et al., 2019)
https://arxiv.org/abs/1907.07328
53 stars 12 forks source link

Several execution problems found #3

Closed DENG-Yifan closed 4 years ago

DENG-Yifan commented 4 years ago
  1. The paths in several py files are out-of-date. They can be found by searching '/wup/'.
  2. In qa+adapter/script/baseline, --key_num $i should be added to each line with python command.
  3. In qa+adapter/start.py, the util.FileUtil cannot be imported until relative codes are written in qa+adapter/src/init.py and qa+adapter/src/util/init.py.
  4. In qa+adapter/src/util/FileUtil.py, the write() function might not work for utf-8 is not explicitly designated. It is suggested to use io.open(file, 'w', encoding='utf-8') to open files.

These are not severe problems and some of which might be environment dependent. But I just list them here. At last, thank you for your work and codes!

wudapeng268 commented 4 years ago

Thanks for your comment. I'll update the code later.