pkumod / gAnswer

A KBQA system based on DBpedia.
http://ganswer.gstore-pku.com
BSD 3-Clause "New" or "Revised" License
376 stars 98 forks source link

{"question":"Who is the wife of Donald Trump?","message":"InvalidQuestionException: the question you input is invalid, please check","status":"500"} #61

Open zhijie-yan opened 3 years ago

zhijie-yan commented 3 years ago

您好,我在按照教程运行ganswer时,输入http://localhost:9999/gSolve/?data={"maxAnswerNum":1, "maxSparqlNum":2, "question":Who is the wife of Donald Trump?}得到的结果如标题所示,这并不是我想要的结果;请问如果我只想要将中文查询语句转换成sparql语句的话,应该如何使用gAnswer?

knightmarehs commented 3 years ago

如果只想得到sparql语句,可以参考readme中Run GAnswer in Eclipse一节,修改GAnswer.java中对应代码以略过查询步骤。 目前版本还不支持中文处理。