Skip to content

Commit

Permalink
Changed up documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
turian committed Aug 24, 2010
1 parent df43a3d commit d39b850
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .hgignore
@@ -0,0 +1,3 @@
syntax: glob
stanford-postagger-full-2010-05-26
xmlrpc-1.2-b1.jar
28 changes: 12 additions & 16 deletions 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 <modelFile> [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 <inputFile> [port]
python client.py <inputFile> [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

0 comments on commit d39b850

Please sign in to comment.