Revision: 1338
Author:
charlie...@gmail.com
Date: Fri Oct 26 07:54:25 2012
Log: [No log message]
http://code.google.com/p/flaxcode/source/detail?r=1338
Added:
/trunk/Clade/cleandata.bat
/trunk/Clade/go1.bat
/trunk/Clade/go2.bat
/trunk/Clade/go3.bat
/trunk/Clade/setpaths.bat
Modified:
/trunk/Clade/README.txt
=======================================
--- /dev/null
+++ /trunk/Clade/cleandata.bat Fri Oct 26 07:54:25 2012
@@ -0,0 +1,8 @@
+REM remove all data from Clade
+
+call setpaths.bat
+
+del %SOLRPATH%\example\solr\data /q /s
+rd %SOLRPATH%\example\solr\data\index
+rd %SOLRPATH%\example\solr\data\spellchecker
+rd %SOLRPATH%\example\solr\data
=======================================
--- /dev/null
+++ /trunk/Clade/go1.bat Fri Oct 26 07:54:25 2012
@@ -0,0 +1,12 @@
+rem go1.bat
+
+REM call some helper batch files that add paths to Python and Java
+call \work\py27.bat
+call \work\java6.bat
+REM import the example data
+python classify.py import data\socpsy.csv
+REM copy Clade's SOLR configuration to the Solr folder (modify the latter
as per your installation of SOLR)
+copy solr-conf\*.* \work\tools\apache-solr-3.6.0\example\solr\conf /Y
+REM go there and start SOLR
+cd \work\tools\apache-solr-3.6.0\example
+java -jar start.jar &
=======================================
--- /dev/null
+++ /trunk/Clade/go2.bat Fri Oct 26 07:54:25 2012
@@ -0,0 +1,8 @@
+rem go2.bat
+
+call setpaths.bat
+
+call \work\java6.bat
+REM start the Stanford classifier
+cd stanford-ner-2011-09-14
+server.bat
=======================================
--- /dev/null
+++ /trunk/Clade/go3.bat Fri Oct 26 07:54:25 2012
@@ -0,0 +1,8 @@
+rem go3.bat
+
+call setpaths.bat
+
+REM start the Clade classifier on the example data
+python classify.py textdir data\socpsy-pages
+REM start the Clade UI server - go to
http://localhost:8080 to try it
+python server.py
=======================================
--- /dev/null
+++ /trunk/Clade/setpaths.bat Fri Oct 26 07:54:25 2012
@@ -0,0 +1,5 @@
+REM setpaths.bat path helper
+REM ** change this to match where you installed Python, Java and Solr on
your system **
+
+path=C:\Program Files
(x86)\Java\jre6\bin;c:\work\tools\python27;c:\work\tools\python27\scripts;%path%
+set SOLRPATH=\work\tools\apache-solr-3.6.0
=======================================
--- /trunk/Clade/README.txt Fri Jun 15 05:15:27 2012
+++ /trunk/Clade/README.txt Fri Oct 26 07:54:25 2012
@@ -2,6 +2,8 @@
Flax Clade PoC
==============
+26.Oct.12
+
Flax Clade PoC is a proof-of-concept open source taxonomy management and
document classification system, based on Apache Solr. In its current state
it
should be considered pre-alpha. As open-source software you are welcome to
try,
@@ -9,7 +11,7 @@
suggestions you might have.
- Tom Mortimer <
t...@flax.co.uk>
-
+- Charlie Hull <
cha...@flax.co.uk>
--------------------------------------
Taxonomies and document classification
@@ -58,13 +60,19 @@
On Windows you can download binaries of httplib2 from
http://www.lfd.uci.edu/~gohlke/pythonlibs/
+---------------
+Getting started
+---------------
+
Download the latest versions from these sites and follow the installation
instructions. The system has been developed on Linux and the following
instructions
assume a Linux environment, but Windows alternative syntax is included
where necessary.
-------------
-Example data
-------------
+**NEW** - Three batch files are provided (go1, go2 and go3.bat) that can
be used to quickly start a
+demonstration version of Clade on Windows: each must be run in a separate
command line window.
+You will need to provide the path to your Solr installation, Python and
Java in setpaths.bat -
+also provided is cleandata.bat which will remove any previously indexed
data. Read the rest of this
+batch file to find out what the batch files are doing!
The Clade distribution includes an example taxonomy and documents derived
from Wikipedia and on the topic of Social Psychology. The taxonomy is