Agriculture_KnowledgeGraph icon indicating copy to clipboard operation
Agriculture_KnowledgeGraph copied to clipboard

在调试智能问答时无法返回答案

Open xxs7130 opened this issue 5 years ago • 1 comments

在demo 的question_answering.py文件中,有一个方法 elif(xingzhengjibie == "镇"): upper_address = get_xian_address(address) if(len(ret_dict) == 0 and upper_address!=0): ret_dict = get_xian_plant(upper_address,ret_dict) if(len(ret_dict) >0 ): ret_dict['list'].append({'entity1':address,'rel':'属于','entity2':upper_address,'entity1_type':'地点','entity2_type':'地点'}) 其中get_xian_address(address)返回值为空,所以导致问答界面检索不出答案,请问这个方法可以改进吗?

xxs7130 avatar Apr 23 '19 11:04 xxs7130

在demo 的question_answering.py文件中,有一个方法 elif(xingzhengjibie == "镇"): upper_address = get_xian_address(address) if(len(ret_dict) == 0 and upper_address!=0): ret_dict = get_xian_plant(upper_address,ret_dict) if(len(ret_dict) >0 ): ret_dict['list'].append({'entity1':address,'rel':'属于','entity2':upper_address,'entity1_type':'地点','entity2_type':'地点'}) 其中get_xian_address(address)返回值为空,所以导致问答界面检索不出答案,请问这个方法可以改进吗?

好奇问一下,你是怎么进入调试功能的。那个manage.py文件怎么调试呢?

Hanlard avatar Mar 17 '20 01:03 Hanlard