// set up parser
Parser parser = new Parser(grammar);
// instantiate scorer
try {
System.out.println("Instantiating parsing sign scorer from class: " + parseScorerClass);
SignScorer parseScorer = (SignScorer) Class.forName(parseScorerClass).newInstance();
parser.setSignScorer(parseScorer);
System.out.println();
} catch (Exception exc) {
throw (RuntimeException) new RuntimeException().initCause(exc);
}