public class MaxentTaggerServer
extends java.lang.Object
Constructor and Description |
---|
MaxentTaggerServer(int port,
edu.stanford.nlp.tagger.maxent.MaxentTagger.TaggerWrapper tagger,
java.lang.String charset)
Creates a new tagger server on the specified port.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Starts this server on the specified port.
|
void |
run()
Runs this tagger server.
|
public MaxentTaggerServer(int port, edu.stanford.nlp.tagger.maxent.MaxentTagger.TaggerWrapper tagger, java.lang.String charset) throws java.io.IOException
port
- the port this NERServer listens on.tagger
- The classifier which will do the taggingcharset
- The character set for encoding Strings over the socket stream, e.g., "utf-8"java.io.IOException
- If there is a problem creating a ServerSocketpublic void run()
public static void main(java.lang.String[] args) throws java.lang.Exception
Usage: java edu.stanford.nlp.tagger.maxent.MaxentTaggerServer [-model file|-client] -port portNumber [other MaxentTagger options]
args
- Command-line arguments (described above)java.lang.Exception
- If file or Java class problems with serialized classifier