public class ProcessUniversalEnhancerRequest extends ProcessProtobufRequest
Constructor and Description |
---|
ProcessUniversalEnhancerRequest() |
Modifier and Type | Method and Description |
---|---|
static void |
enhanceDependencies(java.util.regex.Pattern relativePronounsPattern,
Annotation annotation)
Enhance the dependencies on a single sentence, using the given relative pronouns pattern
|
static void |
enhanceEnglishDependencies(Annotation annotation)
Enhance the dependencies on a single sentence, using the English-specific rules for enhancement
|
static java.util.regex.Pattern |
getRelativePronouns(CoreNLPProtos.DependencyEnhancerRequest request)
Figure out a relative patterns pronoun to use based on the information given in the request
|
static void |
main(java.lang.String[] args)
The inherited main program will either enhance a single document,
or will listen to stdin and enhance every document that comes in
until a terminator is sent or the stream closes
|
void |
processInputStream(java.io.InputStream in,
java.io.OutputStream out)
Process a single request, adding enhanced dependencies to each sentence in the document
|
static CoreNLPProtos.Document |
processRequest(java.util.regex.Pattern relativePronounsPattern,
CoreNLPProtos.DependencyEnhancerRequest request)
Process all sentences in the document, enhancing the basic dependencies on each sentence
|
leftoverArgs, process, processMultipleInputs
public static void enhanceDependencies(java.util.regex.Pattern relativePronounsPattern, Annotation annotation)
public static void enhanceEnglishDependencies(Annotation annotation)
public static CoreNLPProtos.Document processRequest(java.util.regex.Pattern relativePronounsPattern, CoreNLPProtos.DependencyEnhancerRequest request)
public static java.util.regex.Pattern getRelativePronouns(CoreNLPProtos.DependencyEnhancerRequest 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