|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.tagger.maxent.MaxentTaggerServer
public class MaxentTaggerServer
A POS tagger server for the Stanford POS Tagger. Runs on a socket and waits for text to tag and returns the tagged text.
Constructor Summary | |
---|---|
MaxentTaggerServer(int port,
edu.stanford.nlp.tagger.maxent.MaxentTagger.TaggerWrapper tagger,
java.lang.String charset)
Creates a new tagger server on the specified port. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Starts this server on the specified port. |
void |
run()
Runs this tagger server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 ServerSocketMethod Detail |
---|
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |