* @throws IOException when the models can not be read or written to based on the mode.
*/
public DefaultLinker(String modelDirectory, LinkerMode mode, boolean useDiscourseModel, double fixedNonReferentialProbability) throws IOException {
super(modelDirectory, mode, useDiscourseModel);
if (mode != LinkerMode.SIM) {
mcm = new MaxentCompatibilityModel(corefProject);
}
initHeadFinder();
initMentionFinder();
if (mode != LinkerMode.SIM) {
initResolvers(mode, fixedNonReferentialProbability);