|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.server.LexicalizedParserClient
public class LexicalizedParserClient
The sister class to LexicalizedParserServer. This class connects to the given host and port. It can then either return a Tree or a string with the output of the Tree, depending on the method called. getParse gets the string output, getTree returns a Tree.
Constructor Summary | |
---|---|
LexicalizedParserClient(java.lang.String host,
int port)
|
Method Summary | |
---|---|
java.lang.String |
getParse(java.lang.String query)
Returns the String output of the parse of the given query. |
Tree |
getTree(java.lang.String query)
Returs a Tree from the server connected to at host:port. |
static void |
main(java.lang.String[] args)
|
void |
sendQuit()
Tell the server to exit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LexicalizedParserClient(java.lang.String host, int port) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.lang.String getParse(java.lang.String query) throws java.io.IOException
java.io.IOException
public Tree getTree(java.lang.String query) throws java.io.IOException
java.io.IOException
public void sendQuit() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |