We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentea0b5a9 commit645f407Copy full SHA for 645f407
src/edu/stanford/nlp/parser/webapp/index.jsp
@@ -63,7 +63,7 @@ private static ParserPack loadParserPack(String parser, ServletContext applicati
63
// load parser
64
ParserPack pp=newParserPack();
65
pp.escaper= (Function<List<HasWord>,List<HasWord>>)
66
-Class.forName(nameToEscaper.get(parser)).newInstance();
+Class.forName(nameToEscaper.get(parser)).getDeclaredConstructor().newInstance();
67
pp.parser=LexicalizedParser.loadModel(serializedParserPath);
68
pp.tLP= pp.parser.getOp().tlpParams.treebankLanguagePack();
69
pp.tagPrint=newTreePrint("wordsAndTags", pp.tLP);