public class ProcessTsurgeonRequest extends ProcessProtobufRequest
| Constructor and Description |
|---|
ProcessTsurgeonRequest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Command line tool for processing a semgrex request.
|
void |
processInputStream(java.io.InputStream in,
java.io.OutputStream out)
Reads a single request from the InputStream, then writes back a single response.
|
static CoreNLPProtos.TsurgeonResponse |
processRequest(CoreNLPProtos.TsurgeonRequest request)
For a single request, iterate through the Trees it includes,
perform each Tsurgeon operation on each tree, and return
a result with one tree per input tree.
|
leftoverArgs, process, processMultipleInputspublic static CoreNLPProtos.TsurgeonResponse processRequest(CoreNLPProtos.TsurgeonRequest request)
public void processInputStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
processInputStream in class ProcessProtobufRequestjava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException