use of nu.xom.xslt.XSLTransform in project CoreNLP by stanfordnlp.
the class CoreNLPServlet method init.
public void init() throws ServletException {
pipeline = new StanfordCoreNLP();
String xslPath = getServletContext().getRealPath("/WEB-INF/data/CoreNLP-to-HTML.xsl");
try {
Builder builder = new Builder();
Document stylesheet = builder.build(new File(xslPath));
corenlpTransformer = new XSLTransform(stylesheet);
} catch (Exception e) {
throw new ServletException(e);
}
}
Aggregations