From d39b85021febcc75a9a4260caef52685c9ac7e02 Mon Sep 17 00:00:00 2001 From: Joseph Turian Date: Tue, 24 Aug 2010 04:47:53 +0000 Subject: [PATCH] Changed up documentation --- .hgignore | 3 +++ README | 28 ++++++++++++---------------- 2 files changed, 15 insertions(+), 16 deletions(-) create mode 100644 .hgignore diff --git a/.hgignore b/.hgignore new file mode 100644 index 0000000..00ab998 --- /dev/null +++ b/.hgignore @@ -0,0 +1,3 @@ +syntax: glob +stanford-postagger-full-2010-05-26 +xmlrpc-1.2-b1.jar diff --git a/README b/README index d945309..b2ad56b 100644 --- a/README +++ b/README @@ -1,28 +1,24 @@ -wget 'http://nlp.stanford.edu/software/stanford-postagger-full-2010-05-26.tgz' +Getting started +--------------- + wget http://ftp.us.xemacs.org/pub/mirrors/maven2/xmlrpc/xmlrpc/1.2-b1/xmlrpc-1.2-b1.jar + wget http://nlp.stanford.edu/software/stanford-postagger-full-2010-05-26.tgz + tar zxvf stanford-postagger-full-2010-05-26.tgz Here you have: 1. a jar archive including the Stanford Postagger XML-RPC service 2. a python client to test the service - -How to start the service: ------------------------------ -- Copy the tagger_server.jar into "stanford-postagger-full-2010-05-26" +How to start the service +------------------------ - Change to directory "stanford-postagger-full-2010-05-26" - Type at command prompt: - java -classpath /path/to/xmlrpc-1.2-b1.jar;tagger_server.jar;stanford-postagger-2010-05-26.jar edu.stanford.main.MaxentTaggerServer [port] - -e.g. -java -classpath /path/to/xmlrpc-1.2-b1.jar;tagger_server.jar; -stanford-postagger-2010-05-26.jar edu.stanford.main.MaxentTaggerServer models\left3words-distsim-wsj-0-18.tagger 8050 - - - -Here is the python client, in client.py + java -cp ../xmlrpc-1.2-b1.jar:../tagger_server.jar:stanford-postagger-2010-05-26.jar edu.stanford.main.MaxentTaggerServer models/left3words-distsim-wsj-0-18.tagger 8080 +How to run the client +------------------------ Invoke at command prompt: -python client.py [port] + python client.py [port] e.g: -python client.py /stanford-postagger-full-2010-05-26/sample-input.txt 8050 + python client.py stanford-postagger-full-2010-05-26/sample-input.txt 8080