Permalink
Browse files

fixes to make QA examples work

  • Loading branch information...
1 parent 731dff1 commit b57ef28520f762702cd5a83fafc48fde867b3d88 @gsingers gsingers committed Jul 22, 2012
Showing with 28 additions and 22 deletions.
  1. +1 −0 .gitignore
  2. +23 −18 README
  3. +2 −2 bin/indexWikipedia.cmd
  4. +2 −2 bin/indexWikipedia.sh
View
@@ -7,6 +7,7 @@ target
.project
.settings
WordNet-3.0
+WordNet-3.0.tar.gz
opennlp-models
apache-solr/solr-qa/data
apache-solr/solr-qa/conf/dataimport.properties
View
41 README
@@ -1,21 +1,10 @@
-Taming Text, by Grant Ingersoll, Thomas Morton and Drew Farris is designed to teach software engineers the basic concepts of working with text to solve search and Natural Language Processing problems. The book focuses on teaching using existing open source libraries like Apache Solr, Apache Mahout and Apache OpenNLP to manipulate text. To learn more, visit http://www.manning.com/ingersoll.
+Taming Text, by Grant Ingersoll, Thomas Morton and Drew Farris is designed to teach software engineers the basic concepts of
+ working with text to solve search and Natural Language Processing problems. The book focuses on teaching using existing
+ open source libraries like Apache Solr, Apache Mahout and Apache OpenNLP to manipulate text. To learn more, visit http://www.manning.com/ingersoll.
Getting Started
-
-Building the Source
-
-
-Running the Tests
-
-
-Next Steps
-=======
-This directory contains the full source code for all the Taming Text examples.
-Most of the code is setup to be run via JUnit tests, though they are not
-completely automated at this stage of the book.
-
-All instructions are relative to the base directory, called TT_HOME from here on out.
+Throughout this document, TT_HOME is the directory containing the checkout of the Taming Text code base.
Taming Text uses Maven for building and running the code. To get started, you will
need:
@@ -30,13 +19,29 @@ need:
wget -nd -np -r http://maven.tamingtext.com/opennlp-models/models-1.5/
rm index.html*
-4. Get WordNet 3.0 and place it in the TT_HOME directory.
+4. Get WordNet 3.0 and place it in the TT_HOME directory.
This can be done by using the following commands on UNIX:
From the TT_HOME directory:
wget -nd -np -m http://maven.tamingtext.com/wordnet/
rm index.html*
tar -xf Wordnet-3.0.tar.gz
-5. Many of the examples can be run via the 'tt' script in the TT_HOME/bin directory. Running this script without arguments will display a list of the example names.
-6. Some of the samples are powered by pre-configured instances of solr. These can be started with the TT_HOME/bin/start-solr.sh script, which takes a single argument, the name of the instance to start. Available instances include solr-qa, solr-clustering and solr-tagging.
+Building the Source
+
+To build the source, in TT_HOME:
+
+1. mvn compile
+
+Running the Tests
+
+1. mvn test
+
+Next Steps
+=======
+
+* mvn package // Prepares the jar files, etc. for execution
+
+* Many of the examples can be run via the 'tt' script in the TT_HOME/bin directory. Running this script without arguments will display a list of the example names.
+
+* Some of the samples are powered by pre-configured instances of solr. These can be started with the TT_HOME/bin/start-solr.sh script, which takes a single argument, the name of the instance to start. Available instances include solr-qa, solr-clustering and solr-tagging.
View
@@ -3,8 +3,8 @@ SETLOCAL enabledelayedexpansion
@rem JAVA_HOME=C:\Program Files\Java\jre1.6.0_10
-for %%i in (..\lib\*.jar) do set CLASSPATH=!CLASSPATH!;%%i
-for %%i in (..\lib\solrj\*.jar) do set CLASSPATH=!CLASSPATH!;%%i
+for %%i in (..\target\*.jar) do set CLASSPATH=!CLASSPATH!;%%i
+for %%i in (..\target\dependency\*.jar) do set CLASSPATH=!CLASSPATH!;%%i
set MEM_ARGS=-Xms512m -Xmx512m
View
@@ -3,10 +3,10 @@ if [ -z $JAVA_HOME ] ; then
export JAVA_HOME="/Library/Java/Home"
fi
-for jar in ../lib/*.jar;do
+for jar in ../target/*.jar;do
export CLASSPATH=$CLASSPATH:$jar
done
-for jar in ../lib/dependency/*.jar;do
+for jar in ../target/dependency/*.jar;do
export CLASSPATH=$CLASSPATH:$jar
done

0 comments on commit b57ef28

Please sign in to comment.