Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
syntax: glob | ||
stanford-postagger-full-2010-05-26 | ||
xmlrpc-1.2-b1.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |