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 |
getDependencies(java.lang.String query,
java.lang.String mode)
Returns the String output of the dependencies.
|
java.lang.String |
getLemmas(java.lang.String query)
Get the lemmas for the text according to the parser's lemmatizer
(only applies to English), return it as whitespace tokenized text.
|
java.lang.String |
getParse(java.lang.String query,
boolean binarized)
Returns the String output of the parse of the given query.
|
java.lang.String |
getTokenizedText(java.lang.String query)
Tokenize the text according to the parser's tokenizer,
return it as whitespace tokenized text.
|
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.IOException
public java.lang.String getTokenizedText(java.lang.String query) throws java.io.IOException
java.io.IOException
public java.lang.String getLemmas(java.lang.String query) throws java.io.IOException
java.io.IOException
public java.lang.String getDependencies(java.lang.String query, java.lang.String mode) throws java.io.IOException
java.io.IOException
public java.lang.String getParse(java.lang.String query, boolean binarized) 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