public class ProcessSemgrexRequest extends ProcessProtobufRequest
Constructor and Description |
---|
ProcessSemgrexRequest() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Command line tool for processing a semgrex request.
|
static CoreNLPProtos.SemgrexResponse.SemgrexResult |
matchSentence(SemgrexPattern pattern,
SemanticGraph graph,
int patternIdx,
int graphIdx)
Builds a single inner SemgrexResult structure from the pair of a SemgrexPattern and a SemanticGraph
|
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.SemgrexResponse |
processRequest(CoreNLPProtos.SemgrexRequest request)
For a single request, iterate through the SemanticGraphs it
includes, and add the results of each Semgrex operation included
in the request.
|
leftoverArgs, process, processMultipleInputs
public static CoreNLPProtos.SemgrexResponse.SemgrexResult matchSentence(SemgrexPattern pattern, SemanticGraph graph, int patternIdx, int graphIdx)
public static CoreNLPProtos.SemgrexResponse processRequest(CoreNLPProtos.SemgrexRequest request)
public void processInputStream(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
processInputStream
in class ProcessProtobufRequest
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException