opennlp.tools.lang.english
Class TreebankLinker

java.lang.Object
  extended by opennlp.tools.coref.AbstractLinker
      extended by opennlp.tools.coref.DefaultLinker
          extended by 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.


Field Summary
 
Fields inherited from class opennlp.tools.coref.DefaultLinker
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
TreebankLinker(String project, LinkerMode mode)
           
TreebankLinker(String project, LinkerMode mode, boolean useDiscourseModel)
           
TreebankLinker(String project, LinkerMode mode, boolean useDiscourseModel, double fixedNonReferentialProbability)
           
 
Method Summary
protected  void initMentionFinder()
          Initializes the mention finder for this linker.
static void main(String[] args)
          Identitifies corefernce relationships for parsed input passed via standard in.
 
Methods inherited from class opennlp.tools.coref.DefaultLinker
computeGender, computeNumber, initHeadFinder, initResolvers
 
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
 

Constructor Detail

TreebankLinker

public TreebankLinker(String project,
                      LinkerMode mode)
               throws IOException
Throws:
IOException

TreebankLinker

public TreebankLinker(String project,
                      LinkerMode mode,
                      boolean useDiscourseModel)
               throws IOException
Throws:
IOException

TreebankLinker

public TreebankLinker(String project,
                      LinkerMode mode,
                      boolean useDiscourseModel,
                      double fixedNonReferentialProbability)
               throws IOException
Throws:
IOException
Method Detail

initMentionFinder

protected void initMentionFinder()
Description copied from class: DefaultLinker
Initializes the mention finder for this linker. This can be over-ridden to change the space of mentions used for coreference.

Overrides:
initMentionFinder in class DefaultLinker

main

public static void main(String[] args)
                 throws IOException
Identitifies corefernce relationships for parsed input passed via standard in.

Parameters:
args - The model directory.
Throws:
IOException - when the model directory can not be read.


Copyright © 2010. All Rights Reserved.