|
|||||||||
| 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(String host,
int port)
|
|
| Method Summary | |
|---|---|
String |
getParse(String query)
Returns the String output of the parse of the given query. |
Tree |
getTree(String query)
Returs a Tree from the server connected to at host:port. |
static void |
main(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(String host,
int port)
throws IOException
IOException| Method Detail |
|---|
public String getParse(String query)
throws IOException
IOException
public Tree getTree(String query)
throws IOException
IOException
public void sendQuit()
throws IOException
IOException
public static void main(String[] args)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||