Skip to content

gAnwer运行正确,我用的是浏览器进行http请求,输出结果是{"question":"who is the wife of Donald Trump?","message":"InvalidQuestionException: the question you input is invalid, please check","status":"500"},日志如下: #52

@haozheng61

Description

@haozheng61

[Input:] who is the wife of Donald Trump?
EntityRecognizer Initial : ok!
--------- entity/type recognition start ---------
Type Check: wife
Type Check: Donald
Ent Check: Donald
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.lang.Thread.run(Unknown Source)

麻烦告知一下,谢谢您

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions