public class LexicalizedParserClient extends Object
Constructor and Description |
---|
LexicalizedParserClient(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
String |
getDependencies(String query,
String mode)
Returns the String output of the dependencies.
|
String |
getLemmas(String query)
Get the lemmas for the text according to the parser's lemmatizer
(only applies to English), return it as whitespace tokenized text.
|
String |
getParse(String query,
boolean binarized)
Returns the String output of the parse of the given query.
|
String |
getTokenizedText(String query)
Tokenize the text according to the parser's tokenizer,
return it as whitespace tokenized text.
|
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
|
public LexicalizedParserClient(String host, int port) throws IOException
IOException
public String getTokenizedText(String query) throws IOException
IOException
public String getLemmas(String query) throws IOException
IOException
public String getDependencies(String query, String mode) throws IOException
IOException
public String getParse(String query, boolean binarized) 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