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

NullPointerException Error #59

Closed raj-ritu closed 3 years ago

raj-ritu commented 3 years ago

[Input:] What is the Capital of Germany? EntityRecognizer Initial : ok! --------- entity/type recognition start --------- Type Check: Capital Type Check: Germany Ent Check: Germany java.lang.NullPointerException at qa.mapping.DBpediaLookup.getEntityMappings(DBpediaLookup.java:53) at qa.extract.EntityRecognition.getEntityIDsAndNamesByStr(EntityRecognition.java:734) at qa.extract.EntityRecognition.process(EntityRecognition.java:330) at qa.Query.getMergedQuestionList(Query.java:109) at qa.Query.(Query.java:35) at qa.GAnswer.getSparqlList(GAnswer.java:42) at application.GanswerHandler.handle(GanswerHandler.java:66) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1096) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1032) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:258) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:445) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:267) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:224) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532) at java.base/java.lang.Thread.run(Thread.java:834)

Any solution for this ?

raj-ritu commented 3 years ago

Any workaround would be greatly appreciated, it's urgent for me. Thanks

raj-ritu commented 3 years ago

Updating the DBpediaLookup link address will resolve the issue. I have attached the 'DBpediaLookup.java' and 'DBpediaLookup.class' file.

Thank You !!

DBpediaLookup.zip