public class ProcessTokensRegexRequest extends ProcessProtobufRequest
| Constructor and Description |
|---|
ProcessTokensRegexRequest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static CoreNLPProtos.TokensRegexResponse.PatternMatch |
matchPattern(TokenSequencePattern pattern,
java.util.List<CoreMap> sentences) |
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.TokensRegexResponse |
processRequest(CoreNLPProtos.TokensRegexRequest request) |
leftoverArgs, process, processMultipleInputspublic static CoreNLPProtos.TokensRegexResponse.PatternMatch matchPattern(TokenSequencePattern pattern, java.util.List<CoreMap> sentences)
public static CoreNLPProtos.TokensRegexResponse processRequest(CoreNLPProtos.TokensRegexRequest request)
public void processInputStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
ProcessProtobufRequestprocessInputStream in class ProcessProtobufRequestjava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException