ljsking / PatternSearch

5 stars 1 forks source link

Preparation

  1. Install ruby 1.8.x

  2. Clone PatternSearch source from github

  3. Install rubytree with dependecy gem install rubytree

  4. Install stanfordparser gem install stanfordparser Download and copy englishPCFG.ser.gz, stanford-parser.jar to

    UNIX:: /usr/local/stanford-parser/current

    # Windows:: C:\stanford-parser\current
    from http://nlp.stanford.edu/software/stanford-parser-2008-10-26.tgz
  5. Install rjb gem install rjb

  6. Install treebank gem install treebank

  7. Setup jdk Install jdk set environment variable JAVA_HOME to C:\Program Files\Java\jdk1.6.0_xx

  8. Setup Solr Download solr from http://apache.tt.co.kr/lucene/solr/1.3.0/apache-solr-1.3.0.zip Configure solr server copy scheme.xml Start solr server cd {solr root}/example java -jar start.jar http://localhost:8983/solr/admin/

  9. Install solr-ruby gem gem install solr-ruby

  10. Do rake to test!