opennlp.tools.parser.treeinsert
Class CheckContextGenerator

java.lang.Object
  extended by opennlp.tools.parser.AbstractContextGenerator
      extended by opennlp.tools.parser.treeinsert.CheckContextGenerator

public class CheckContextGenerator
extends AbstractContextGenerator


Field Summary
 
Fields inherited from class opennlp.tools.parser.AbstractContextGenerator
EOS, punctSet, useLabel, zeroBackOff
 
Constructor Summary
CheckContextGenerator(Set<String> punctSet)
           
 
Method Summary
 String[] getContext(Object arg0)
           
 String[] getContext(Parse parent, Parse[] constituents, int index, boolean trimFrontier)
           
 
Methods inherited from class opennlp.tools.parser.AbstractContextGenerator
checkcons, checkcons, cons, cons2, cons3, consbo, getFrontierNodes, production, punct, punctbo, surround
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckContextGenerator

public CheckContextGenerator(Set<String> punctSet)
Method Detail

getContext

public String[] getContext(Object arg0)

getContext

public String[] getContext(Parse parent,
                           Parse[] constituents,
                           int index,
                           boolean trimFrontier)


Copyright © 2010. All Rights Reserved.