iamaziz / kge_qa

Simple-Question Answering based on Knowledge Graph Embeddings (part of my Ph.D. work)
MIT License
0 stars 1 forks source link

这个问答系统使用python哪个版本写的呀 #1

Open Stsfan opened 4 years ago

huly1220 commented 4 years ago

Hello, I ran your experiment, but I regret that I did not get through. I always reported an error. I hope to get your help and guidance for every step. Thank you very much. When running the build_new_model.py file through pycharm, an error is reported: File "D: /shiyan/kge_qa-master/kge_qa-master/kgeqa/build_new_model.py", line 33, in init     from .load_models import EMBEDDING_MODEL ModuleNotFoundError: No module named 'main . Load_models'; 'main' is not a package When running python -m kgeqa.main from the command line, an error is reported: D: \ shiyan \ kge_qa-master \ kge_qa-master> python -m kgeqa.main 2020-04-13 15: 15: 07,937: INFO: loading embedding model from:  C: \ Users \ hu / .magnitude / ft-wiki-news-300d-1M-subword.magnitude urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

RuntimeError: The path to the Magnitude file at 'C: \ Users \ hu / .magnitude / ft-wiki-news-300d-1M-subword.magnitude' could not be found. Also failed to find a valid remote model at the following URL: http://magnitude.plasticity.ai/C:\Users\hu/.magnitude/ft-wiki-news-300d-1M-subword.magnitude

iamaziz commented 4 years ago

Hey, it looks like you're running under Windows OS. Unfortunately, kge_qa was tested on macOS and Linux. The error seems to be path-related issues. Please make sure that you setup the project under a virtual environment and run the scripts from the top directory.

iamaziz commented 4 years ago

I don't have access to Windows OS, but please make sure HOME_DIR and PARENT_DIR paths are correct on Windows OS.