SPARQA icon indicating copy to clipboard operation
SPARQA copied to clipboard

oracle_grounded_graph_graphq/result/ 缺失

Open JimXiongGM opened this issue 4 years ago • 19 comments

您好,在执行 code/running/freebase/pipeline_cwq.py 的时候,设置module = "2.1",报错:

[Errno 2] No such file or directory: 'SPARQA/dataset_graphquestions/oracle_grounded_graph_graphq/result/'

请问应该如何解决呢?谢谢~

JimXiongGM avatar Oct 20 '20 03:10 JimXiongGM

您运行的文件是跑cwq的,报的是graphq,可能是配置地方不一致造成的

---原始邮件--- 发件人: "GentleMing_X"<[email protected]> 发送时间: 2020年10月20日(周二) 中午11:57 收件人: "nju-websoft/SPARQA"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: [nju-websoft/SPARQA] oracle_grounded_graph_graphq/result/ 缺失 (#7)

您好,在执行 code/running/freebase/pipeline_cwq.py 的时候,设置module = "2.1",报错:

[Errno 2] No such file or directory: 'SPARQA/dataset_graphquestions/oracle_grounded_graph_graphq/result/'

请问应该如何解决呢?谢谢~

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

simba0626 avatar Oct 20 '20 04:10 simba0626

是我的问题,目前已经解决,谢谢您的回复~

JimXiongGM avatar Oct 20 '20 06:10 JimXiongGM

您好,在执行code/running/freebase/pipeline_graphq.py,设置module = "2.1"时:

No such file or directory: 'SPARQA/dataset_graphquestions/2019.05.13_test_answers'

请问应该如何解决呢?谢谢~

JimXiongGM avatar Nov 10 '20 08:11 JimXiongGM

给您带来不便,抱歉,这个文件应该是已经不用了,晚上我再检查一下,答复您

---原始邮件--- 发件人: "GentleMing_X"<[email protected]> 发送时间: 2020年11月10日(周二) 下午4:03 收件人: "nju-websoft/SPARQA"<[email protected]>; 抄送: "Comment"<[email protected]>;"Yawei Sun"<[email protected]>; 主题: Re: [nju-websoft/SPARQA] oracle_grounded_graph_graphq/result/ 缺失 (#7)

您好,在执行code/running/freebase/pipeline_graphq.py,设置module = "2.1"时:

No such file or directory: 'SPARQA/dataset_graphquestions/2019.05.13_test_answers'

请问应该如何解决呢?谢谢~

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

simba0626 avatar Nov 10 '20 08:11 simba0626

非常感谢~(∩_∩)

JimXiongGM avatar Nov 10 '20 08:11 JimXiongGM

您好,你本地试一下,按照README.md更新一下code和data 有问题的话,请留言 感谢~

simba0626 avatar Nov 11 '20 14:11 simba0626

您好,在执行 code/running/freebase/pipeline_cwq.py 的时候,设置module = "2.3_word_match",又报错:

Exception has occurred: ModuleNotFoundError
No module named 'grounding.ranking.path_match_nn'
  File "SPARQA/code/grounding/ranking/path_match_word_level/path_match_interface.py", line 30, in set_model_data
    self.model = torch.load(model_file,map_location=lambda storage, location: storage)

请问应该如何解决呢?谢谢~

JimXiongGM avatar Nov 16 '20 03:11 JimXiongGM

您好, 抱歉README.md我可能没讲清楚,  说明如下: 您跑CWQ问句集的话, globals_args.py里面: q_mode='cwq',  kb_mode='kb_freebase_latest',   您跑GraphQ问句集的话, q_mode='graphq',  kb_mode='kb_freebase_en_2013'.     ------------------ Original ------------------ From: "GentleMing_X"; Date: 2020年11月16日(星期一) 上午10:31 To: "nju-websoft/SPARQA"; Cc: "Yawei Sun"; "Comment"; Subject: Re: [nju-websoft/SPARQA] oracle_grounded_graph_graphq/result/ 缺失 (#7)

 

您好,在执行 code/running/freebase/pipeline_cwq.py 的时候,设置module = "2.3_word_match",又报错:

[Errno 2] No such file or directory: "SPARQA/kb_freebase_en_2013/relortype_level_words.json"

请问应该如何解决呢?谢谢~

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

simba0626 avatar Nov 16 '20 09:11 simba0626

relortype_level_words是我的问题,刚发出来就删除了,现在是No module named 'grounding.ranking.path_match_nn'的问题~

JimXiongGM avatar Nov 16 '20 09:11 JimXiongGM

您好, 抱歉, 这个问题是我上周更改的文件夹命名跟model_file保存的旧的文件名不一致造成的, 您要是想跑我提供的models, 把文件夹名字path_match_word_level改回原来的path_match_nn试试

    ------------------ Original ------------------ From: "GentleMing_X"; Date: 2020年11月16日(星期一) 中午11:12 To: "nju-websoft/SPARQA"; Cc: "Yawei Sun"; "Comment"; Subject: Re: [nju-websoft/SPARQA] oracle_grounded_graph_graphq/result/ 缺失 (#7)

 

您好,在执行 code/running/freebase/pipeline_cwq.py 的时候,设置module = "2.3_word_match",又报错: Exception has occurred: ModuleNotFoundError No module named 'grounding.ranking.path_match_nn' File "SPARQA/code/grounding/ranking/path_match_word_level/path_match_interface.py", line 30, in set_model_data self.model = torch.load(model_file,map_location=lambda storage, location: storage)
请问应该如何解决呢?谢谢~

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

simba0626 avatar Nov 16 '20 09:11 simba0626

要不您别改了, 改的地方有点多, 我现在改回原来的, 上传一下, 您更新一下grounding/ranking下面的文件    ------------------ Original ------------------ From: "GentleMing_X"; Date: 2020年11月16日(星期一) 下午5:20 To: "nju-websoft/SPARQA"; Cc: "Yawei Sun"; "Comment"; Subject: Re: [nju-websoft/SPARQA] oracle_grounded_graph_graphq/result/ 缺失 (#7)

 

relortype_level_words是我的问题,刚发出来就删除了,现在是No module named 'grounding.ranking.path_match_nn'的问题~

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

simba0626 avatar Nov 16 '20 09:11 simba0626

好,感谢感谢,这个工作代码量真的好大啊

JimXiongGM avatar Nov 16 '20 09:11 JimXiongGM

running文件夹, 您也更新一下,  不是, 可能是有些尝试过代码,我没删除, 闲了, 可以再精简优化一下.

感谢您的关注

    ------------------ Original ------------------ From: "GentleMing_X"; Date: 2020年11月16日(星期一) 下午5:34 To: "nju-websoft/SPARQA"; Cc: "Yawei Sun"; "Comment"; Subject: Re: [nju-websoft/SPARQA] oracle_grounded_graph_graphq/result/ 缺失 (#7)

 

好,感谢感谢,这个工作代码量真的好大啊

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

simba0626 avatar Nov 16 '20 09:11 simba0626

您好,跑graphquestion时,pipeline_graphq.py设置module = "2.2",运行过程中run_grounded_graph_generation_by_structure_transformation函数中的grounded_graph_forest变量一直是[],即generate_candidates_by_2_1_grounded_graph_interface函数的返回值oracle_graphs一直是[],想问下这是正常现象吗?

JimXiongGM avatar Nov 16 '20 15:11 JimXiongGM

您好,不正常,您或许要检查一下您本地的dataset_name里面的GraphqFileName类下的oracle_graphs_file是否更改为您本地的路径    ------------------ Original ------------------ From: "GentleMing_X"; Date: 2020年11月16日(星期一) 晚上11:01 To: "nju-websoft/SPARQA"; Cc: "Yawei Sun"; "Comment"; Subject: Re: [nju-websoft/SPARQA] oracle_grounded_graph_graphq/result/ 缺失 (#7)

 

您好,跑graphquestion时,pipeline_graphq.py设置module = "2.2",运行过程中run_grounded_graph_generation_by_structure_transformation函数中的grounded_graph_forest变量一直是[],即generate_candidates_by_2_1_grounded_graph_interface函数的返回值oracle_graphs一直是[],想问下这是正常现象吗?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

simba0626 avatar Nov 16 '20 15:11 simba0626

你好,在跑2.2的时候oracle_grounded_graph_graphq/result/ 的缺失导致grounded_graph_forest,为空请问如何解决?本地路径导向的是什么文件?

Dionysusssss avatar Dec 28 '20 13:12 Dionysusssss

您好,您需要下载README.md提示的Oracle Grounded Graph,它解压以后就是result里面的文件,也可能我没讲清楚,抱歉。

simba0626 avatar Dec 28 '20 13:12 simba0626

下载并生成,有点繁琐,为帮助理解,针对数据集提供2.2样例输出,具体参见dataset_graphquestions/output_graphq和dataset_cwq_1_1/output_cwq下面的2.2打头的文件夹

simba0626 avatar Dec 28 '20 13:12 simba0626

okok 非常感谢!!

Dionysusssss avatar Dec 28 '20 14:12 Dionysusssss