| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopennlp.tools.coref.AbstractLinker
opennlp.tools.coref.DefaultLinker
public class DefaultLinker
This class perform coreference for treebank style parses or for noun-phrase chunked data. Non-constituent entities such as pre-nominal named-entities and sub entities in simple coordinated noun phases will be created. This linker requires that named-entity information also be provided. This information can be added to the parse using the -parse option with EnglishNameFinder.
| Field Summary | |
|---|---|
| protected  MaxentCompatibilityModel | mcm | 
| Fields inherited from class opennlp.tools.coref.AbstractLinker | 
|---|
| corefProject, debug, entities, headFinder, linker, mentionFinder, mode, removeUnresolvedMentions, resolverNames, resolvers, SINGULAR_PRONOUN, useDiscourseModel | 
| Fields inherited from interface opennlp.tools.coref.Linker | 
|---|
| COMBINED_NPS, DESCRIPTOR, ISA, NP, PRONOUN_MODIFIER, PROPER_NOUN_MODIFIER | 
| Constructor Summary | |
|---|---|
| DefaultLinker(String modelDirectory,
              LinkerMode mode)Creates a new linker with the specified model directory, running in the specified mode. | |
| DefaultLinker(String modelDirectory,
              LinkerMode mode,
              boolean useDiscourseModel)Creates a new linker with the specified model directory, running in the specified mode which uses a discourse model based on the specified parameter. | |
| DefaultLinker(String modelDirectory,
              LinkerMode mode,
              boolean useDiscourseModel,
              double fixedNonReferentialProbability)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. | |
| Method Summary | |
|---|---|
| protected  Gender | computeGender(MentionContext mention) | 
| protected  Number | computeNumber(MentionContext mention) | 
| protected  void | initHeadFinder()Initializes the head finder for this linker. | 
| protected  void | initMentionFinder()Initializes the mention finder for this linker. | 
| protected  void | initResolvers(LinkerMode mode,
              double fixedNonReferentialProbability)Initializes the resolvers used by this linker. | 
| Methods inherited from class opennlp.tools.coref.AbstractLinker | 
|---|
| checkForMerges, constructMentionContexts, getEntities, getHeadFinder, getMentionFinder, resolve, setEntities, train, updateExtent | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected MaxentCompatibilityModel mcm
| Constructor Detail | 
|---|
public DefaultLinker(String modelDirectory,
                     LinkerMode mode)
              throws IOException
modelDirectory - The directory where the models for this linker are kept.mode - The mode that this linker is running in.
IOException - when the models can not be read or written to based on the mode.
public DefaultLinker(String modelDirectory,
                     LinkerMode mode,
                     boolean useDiscourseModel)
              throws IOException
modelDirectory - The directory where the models for this linker are kept.mode - The mode that this linker is running in.useDiscourseModel - Whether the model should use a discourse model or not.
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
modelDirectory - The directory where the models for this linker are kept.mode - The mode that this linker is running in.useDiscourseModel - Whether the model should use a discourse model or not.fixedNonReferentialProbability - The probability which resolvers are required to exceed to positi a coreference relationship.
IOException - when the models can not be read or written to based on the mode.| Method Detail | 
|---|
protected void initResolvers(LinkerMode mode,
                             double fixedNonReferentialProbability)
                      throws IOException
mode - The mode in which this linker is being used.fixedNonReferentialProbability - 
IOExceptionprotected void initHeadFinder()
protected void initMentionFinder()
protected Gender computeGender(MentionContext mention)
computeGender in class AbstractLinkerprotected Number computeNumber(MentionContext mention)
computeNumber in class AbstractLinker| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||