public static void trueMain(String... args) throws IOException { final Parameters params = Parameters.loadSerifStyle(new File(args[0])); final AnnotationStore store = AssessmentSpecFormats.openAnnotationStore( params.getExistingDirectory("annotationStore"), AssessmentSpecFormats.Format.KBP2015); for (Symbol docID : store.docIDs()) { log.info("processing document {}", docID.asString()); final AnswerKey answerKey = MakeAllRealisActual.forAnswerKey().apply(store.read(docID)); final HTMLRenderer htmlRenderer = new HTMLRenderer(docID.asString()); htmlRenderer.setCorefAnnotation(answerKey.corefAnnotation()); htmlRenderer.addResponses( overallOrdering.sortedCopy( FluentIterable.from(answerKey.annotatedResponses()) .filter(AssessedResponse.IsCorrectUpToInexactJustifications) .transform(AssessedResponse.Response))); final File output = params.getCreatableDirectory("output"); htmlRenderer.renderTo( Files.asCharSink(new File(output, docID.asString() + ".html"), Charset.defaultCharset())); } }
public void run() { HTMLRenderer.access$100(HTMLRenderer.this, val$rendererContextFinalRef); }