Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quering on yadoqa prompt #4

Closed
karimkhanp opened this issue Dec 18, 2014 · 4 comments
Closed

Quering on yadoqa prompt #4

karimkhanp opened this issue Dec 18, 2014 · 4 comments

Comments

@karimkhanp
Copy link

After successful execution, I brought to this prompt and I queried there as below :

Brmson.YodaQA interactive question answerer
(c) 2014 Petr Baudis, standing on the shoulders of giants
brmson.yodaqa> where is america


it took time for producing couple of resource, now at this stage

INFO ResourceObjectProviderBase - downloading http://zoidberg.ukp.informatik.tu-darmstadt.de/artifactory/public-model-releases-local/de/tudarmstadt/ukp/dkpro/core/de.tudarmstadt.ukp.dkpro.core.opennlp-model-ner-en-date/20100907.0/de.tudarmstadt.ukp.dkpro.core.opennlp-model-ner-en-date-20100907.0.jar ...


awaiting for around 20 minutes, but no progress

could you please explain what process going on here? This is pretty interesting for me. Awaiting for response is not an issue for me

@pasky
Copy link
Member

pasky commented Dec 18, 2014

Hi!

The QA system requires numerous online resources, and on the first run
it will download several hundreds of megabytes. If the download got
stuck, try restarting it, or try running it with extra commandline
parameter

-Dorg.slf4j.simpleLogger.defaultLogLevel=debug

This is an issue only for the first ever run of the system.

pasky added a commit that referenced this issue Dec 18, 2014
@karimkhanp
Copy link
Author

Thanks again. I asked "distance between canada and USA" , it stuck with this exception. Anyways, this is much interesting. Will keep exploring!


SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException
at cz.brmlab.yodaqa.analysis.ansevid.SolrHitsCounter.process(SolrHitsCounter.java:99)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:309)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:569)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.(ASB_impl.java:411)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:266)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:569)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.(ASB_impl.java:411)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:266)
at cz.brmlab.yodaqa.flow.MultiCASPipeline.runAnalysisEngines(MultiCASPipeline.java:135)
at cz.brmlab.yodaqa.flow.MultiCASPipeline.runPipeline(MultiCASPipeline.java:95)
at cz.brmlab.yodaqa.YodaQA_Interactive.main(YodaQA_Interactive.java:31)
Caused by: org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http://pasky.or.cz:8983/solr
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:362)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:211)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:321)
at cz.brmlab.yodaqa.provider.solr.Solr.runQuery(Solr.java:75)
at cz.brmlab.yodaqa.provider.solr.Solr.runQuery(Solr.java:125)
at cz.brmlab.yodaqa.analysis.ansevid.SolrHitsCounter.process(SolrHitsCounter.java:97)
... 14 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:196)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:92)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:61)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:219)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:306)
... 20 more

Dec 18, 2014 9:53:08 PM org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl processAndOutputNewCASes(274)
SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException
at cz.brmlab.yodaqa.analysis.ansevid.SolrHitsCounter.process(SolrHitsCounter.java:99)
at org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:385)
at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:309)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:569)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.(ASB_impl.java:411)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:266)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:569)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.(ASB_impl.java:411)
at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:344)
at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:266)
at cz.brmlab.yodaqa.flow.MultiCASPipeline.runAnalysisEngines(MultiCASPipeline.java:135)
at cz.brmlab.yodaqa.flow.MultiCASPipeline.runPipeline(MultiCASPipeline.java:95)
at cz.brmlab.yodaqa.YodaQA_Interactive.main(YodaQA_Interactive.java:31)
Caused by: org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http://pasky.or.cz:8983/solr
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:362)
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:211)
at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:321)
at cz.brmlab.yodaqa.provider.solr.Solr.runQuery(Solr.java:75)
at cz.brmlab.yodaqa.provider.solr.Solr.runQuery(Solr.java:125)
at cz.brmlab.yodaqa.analysis.ansevid.SolrHitsCounter.process(SolrHitsCounter.java:97)
... 14 more
Caused by: java.net.SocketException: Connection reset

..and so on

@pasky
Copy link
Member

pasky commented Dec 18, 2014

Hi!

Might your internet connection be a bit flaky? On my side, I see reset
connection during that query, then again another one too.

To use the system, you need solid internet connectivity. Full-text and
structured data queries are performed on my server. Alternatively, you
can set up your own datasets (see further instructions in README), but
that's a little arduous - as long as you have internet connectivity,
it should work fine to use the resources setup at my side.

@karimkhanp
Copy link
Author

yeah might be due to that.
Going deep into code, expecting similar response in future : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants