new ProperNounResolver(corefProject, ResolverMode.TEST),
new DefiniteNounResolver(corefProject, ResolverMode.TEST),
new IsAResolver(corefProject, ResolverMode.TEST),
new PluralPronounResolver(corefProject, ResolverMode.TEST),
new PluralNounResolver(corefProject, ResolverMode.TEST),
new CommonNounResolver(corefProject, ResolverMode.TEST),
new SpeechPronounResolver(corefProject, ResolverMode.TEST)
};
}
else {
NonReferentialResolver nrr = new FixedNonReferentialResolver(fixedNonReferentialProbability);
resolvers = new MaxentResolver[] {
new SingularPronounResolver(corefProject, ResolverMode.TEST,nrr),
new ProperNounResolver(corefProject, ResolverMode.TEST,nrr),
new DefiniteNounResolver(corefProject, ResolverMode.TEST,nrr),
new IsAResolver(corefProject, ResolverMode.TEST,nrr),
new PluralPronounResolver(corefProject, ResolverMode.TEST,nrr),
new PluralNounResolver(corefProject, ResolverMode.TEST,nrr),
new CommonNounResolver(corefProject, ResolverMode.TEST,nrr),
new SpeechPronounResolver(corefProject, ResolverMode.TEST,nrr)
};
}
if (LinkerMode.EVAL == mode) {
//String[] names = {"Pronoun", "Proper", "Def-NP", "Is-a", "Plural Pronoun"};
//eval = new Evaluation(names);
}
MaxentResolver.setSimilarityModel(SimilarityModel.testModel(corefProject + "/sim"));
}
else if (LinkerMode.TRAIN == mode) {
resolvers = new AbstractResolver[9];
resolvers[0] = new SingularPronounResolver(corefProject, ResolverMode.TRAIN);
resolvers[1] = new ProperNounResolver(corefProject, ResolverMode.TRAIN);
resolvers[2] = new DefiniteNounResolver(corefProject, ResolverMode.TRAIN);
resolvers[3] = new IsAResolver(corefProject, ResolverMode.TRAIN);
resolvers[4] = new PluralPronounResolver(corefProject, ResolverMode.TRAIN);
resolvers[5] = new PluralNounResolver(corefProject, ResolverMode.TRAIN);
resolvers[6] = new CommonNounResolver(corefProject, ResolverMode.TRAIN);
resolvers[7] = new SpeechPronounResolver(corefProject, ResolverMode.TRAIN);
resolvers[8] = new PerfectResolver();
}
else {
System.err.println("DefaultLinker: Invalid Mode");