@Override protected Gender computeGender(MentionContext mention) { return mcm.computeGender(mention); }
@Override protected Number computeNumber(MentionContext mention) { return mcm.computeNumber(mention); } }
/** * Creates a new linker with the specified model directory, running in the specified mode which uses a discourse model * based on the specified parameter and uses the specified fixed non-referential probability. * @param modelDirectory The directory where the models for this linker are kept. * @param mode The mode that this linker is running in. * @param useDiscourseModel Whether the model should use a discourse model or not. * @param fixedNonReferentialProbability The probability which resolvers are required to exceed to positi a coreference relationship. * @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); entities = new DiscourseEntity[resolvers.length]; } }
/** * Creates a new linker with the specified model directory, * running in the specified mode which uses a discourse model * based on the specified parameter and uses the specified fixed non-referential probability. * @param modelDirectory The directory where the models for this linker are kept. * @param mode The mode that this linker is running in. * @param useDiscourseModel Whether the model should use a discourse model or not. * @param fixedNonReferentialProbability The probability which resolvers are * required to exceed to positi a coreference relationship. * @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); entities = new DiscourseEntity[resolvers.length]; } }
@Override protected Number computeNumber(MentionContext mention) { return mcm.computeNumber(mention); } }
@Override protected Gender computeGender(MentionContext mention) { return mcm.computeGender(mention); }