opennlp.tools.coref
Class DefaultLinker
java.lang.Object
opennlp.tools.coref.AbstractLinker
opennlp.tools.coref.DefaultLinker
- All Implemented Interfaces:
- Linker
- Direct Known Subclasses:
- TreebankLinker, TreebankLinker
public class DefaultLinker
- extends AbstractLinker
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.
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. |
DefaultLinker
public DefaultLinker(String modelDirectory,
LinkerMode mode)
throws IOException
- Creates a new linker with the specified model directory, running in the specified mode.
- Parameters:
modelDirectory
- The directory where the models for this linker are kept.mode
- The mode that this linker is running in.
- Throws:
IOException
- when the models can not be read or written to based on the mode.
DefaultLinker
public DefaultLinker(String modelDirectory,
LinkerMode mode,
boolean useDiscourseModel)
throws IOException
- Creates a new linker with the specified model directory, running in the specified mode which uses a discourse model
based on the specified parameter.
- Parameters:
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.
- Throws:
IOException
- when the models can not be read or written to based on the mode.
DefaultLinker
public DefaultLinker(String modelDirectory,
LinkerMode mode,
boolean useDiscourseModel,
double fixedNonReferentialProbability)
throws IOException
- 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.
- Parameters:
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.
- Throws:
IOException
- when the models can not be read or written to based on the mode.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.