// also turn on parse stats if doing n-best output
if (tester.nbestparsefile != null) tester.showParseStats = true;
// instantiate supertagger, if any
if (supertaggerClass != null || stconfig != null) {
try {
Supertagger supertagger;
if (supertaggerClass != null) {
System.out.println("Instantiating supertagger from class: " + supertaggerClass);
supertagger = (Supertagger) Class.forName(supertaggerClass).newInstance();
}
else {
System.out.println("Instantiating supertagger from config file: " + stconfig);
supertagger = WordAndPOSDictionaryLabellingStrategy.supertaggerFactory(stconfig);
}
tester.parser.setSupertagger(supertagger);
if (tester.eventfile != null) {
supertagger.setIncludeGold(true); // use gold tags during training
tester.parser.setSupertaggerMostToLeastRestrictiveDirection(false); // reverse direction to start with least restrictive setting
}
System.out.println();
} catch (Exception exc) {
throw (RuntimeException) new RuntimeException().initCause(exc);