opennlp.tools.lang.english
Class TreebankLinker
java.lang.Object
opennlp.tools.coref.AbstractLinker
opennlp.tools.coref.DefaultLinker
opennlp.tools.lang.english.TreebankLinker
- All Implemented Interfaces:
- Linker
public class TreebankLinker
- extends DefaultLinker
This class perform coreference for treebank style parses.
It will only perform coreference over constituents defined in the trees and
will not generate new constituents for pre-nominal entities or sub-entities in
simple coordinated noun phrases. This linker requires that named-entity information also be provided.
This information can be added to the parse using the -parse option with EnglishNameFinder.
Method Summary |
static void |
main(java.lang.String[] args)
Identitifies corefernce relationships for parsed input passed via standard in. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreebankLinker
public TreebankLinker(java.lang.String project,
LinkerMode mode)
throws java.io.IOException
- Throws:
java.io.IOException
TreebankLinker
public TreebankLinker(java.lang.String project,
LinkerMode mode,
boolean useDiscourseModel)
throws java.io.IOException
- Throws:
java.io.IOException
TreebankLinker
public TreebankLinker(java.lang.String project,
LinkerMode mode,
boolean useDiscourseModel,
double fixedNonReferentialProbability)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Identitifies corefernce relationships for parsed input passed via standard in.
- Parameters:
args
- The model directory.
- Throws:
java.io.IOException
- when the model directory can not be read.
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.