public class EvaluateExternalParser extends ProcessProtobufRequest
| Constructor and Description |
|---|
EvaluateExternalParser(java.lang.String... args) |
| Modifier and Type | Method and Description |
|---|---|
CoreNLPProtos.EvaluateParserResponse |
buildResponse(double f1,
java.lang.Double kbestF1,
java.util.List<java.lang.Double> f1History) |
java.util.List<Pair<ParserQuery,Tree>> |
convertDataset(java.util.List<Tree> goldTrees,
java.util.List<java.util.List<Tree>> results) |
static java.util.List<Tree> |
getGoldTrees(CoreNLPProtos.EvaluateParserRequest parses)
Extract the gold trees from a list of requests
|
static java.util.List<java.util.List<Tree>> |
getResults(CoreNLPProtos.EvaluateParserRequest parses)
Extract the predicted trees from a list of requests
|
static void |
main(java.lang.String[] args)
Command line tool for processing a parser evaluation request.
|
void |
processInputStream(java.io.InputStream in,
java.io.OutputStream out)
Reads a single request from the InputStream, then writes back a single response.
|
CoreNLPProtos.EvaluateParserResponse |
processRequest(CoreNLPProtos.EvaluateParserRequest parses) |
CoreNLPProtos.EvaluateParserResponse |
scoreDataset(java.util.List<Tree> goldTrees,
java.util.List<java.util.List<Tree>> results)
Puts the list of gold trees and a list of list of results into EvaluateTreebank
|
leftoverArgs, process, processMultipleInputspublic static java.util.List<Tree> getGoldTrees(CoreNLPProtos.EvaluateParserRequest parses)
public static java.util.List<java.util.List<Tree>> getResults(CoreNLPProtos.EvaluateParserRequest parses)
public java.util.List<Pair<ParserQuery,Tree>> convertDataset(java.util.List<Tree> goldTrees, java.util.List<java.util.List<Tree>> results)
public CoreNLPProtos.EvaluateParserResponse buildResponse(double f1, java.lang.Double kbestF1, java.util.List<java.lang.Double> f1History)
public CoreNLPProtos.EvaluateParserResponse scoreDataset(java.util.List<Tree> goldTrees, java.util.List<java.util.List<Tree>> results)
public CoreNLPProtos.EvaluateParserResponse processRequest(CoreNLPProtos.EvaluateParserRequest parses) throws java.io.IOException
java.io.IOExceptionpublic 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