public class LexicalizedParserClient
extends java.lang.Object
| Constructor and Description |
|---|
LexicalizedParserClient(java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
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
|
public LexicalizedParserClient(java.lang.String host,
int port)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getParse(java.lang.String query)
throws java.io.IOException
java.io.IOExceptionpublic Tree getTree(java.lang.String query) throws java.io.IOException
java.io.IOExceptionpublic void sendQuit()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException