asmehra95 / wiseowl

This is a Fact based Question Answering System using Apache Solr as backend search engine, Wikipedia dumps as information source, Apache velocity , Html, Css for Web interface Design. The project also uses Linux bash script to perform its various functions like start,stop,training,indexing.
MIT License
25 stars 9 forks source link

Arguments to run indexing #7

Open amahesh11 opened 6 years ago

amahesh11 commented 6 years ago

I am trying to run WiseOwl on a windows server. trying to rewrite the WiseOwl script. I am not clear on what are $2 $3 $4 in this command. Also there is no main defined in com.wiseowl.WiseOwl.indexing.FeedData. How is this supposed to work?

RUN_CMD="java -cp $CLASSPATH:../target/WiseOwl-0.0.1-SNAPSHOT.jar com.wiseowl.WiseOwl.indexing.FeedData $2 $3 $4"

Thanks in advance

asmehra95 commented 6 years ago

Good to see that you are developing a windows script. Here is something that might help. Feeddata is a class used for indexing documents into wiseowl, via solr.. here is an error message that is displayed if you dont provide enough arguments:

Require two arguments: <index type> <folder location> <documents Indexed>

  1. index type: ($2)
  1. folder location: ($3) location from where we have to index. overrides default directory

  2. documents indexed ($4) starts indexing document from this number. Can be considered as an offset for documents indexed. since we use a sequential number as a document index

If you need any further assistance, you can message here. Sorry for late reply. I was busy with exams. And don't forget to raise a pull request once you are done

amahesh11 commented 6 years ago

Hi Avtar, Thanks for your response. I was able to get feed data to work fine. I ran into another issue. I keep getting classcast exception when I create WiseOwl core. I made sure that I m building WiseOwl with solar 6.3 jar files. No matter what it throws classcast exception. Any idea? Good luck with your exams. Thanks Asha

Sent from my iPad

On Dec 3, 2017, at 12:38 PM, Avtar Singh notifications@github.com wrote:

Good to see that you are developing a windows script. Here is something that might help. Feeddata is a class used for indexing documents into wiseowl, via solr.. here is an error message that is displayed if you dont provide enough arguments:

Require two arguments: \n

index type: ($2) two types: wikipedia -- tailored to index wikipedia pages other -- to index any general type of file eg pdf or word file

folder location: ($3) location from where we have to index. overrides default directory

documents indexed ($4) starts indexing document from this number. Can be considered as an offset for documents indexed. since we use a sequential number as a document index

If you need any further assistance, you can message here. Sorry for late reply. I was busy with exams. And don't forget to raise a pull request once you are done

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

asmehra95 commented 6 years ago

can you share a detailed log where the issue occurs?