opennlp.tools.parser.treeinsert
Class AttachContextGenerator
java.lang.Object
  
opennlp.tools.parser.AbstractContextGenerator
      
opennlp.tools.parser.treeinsert.AttachContextGenerator
public class AttachContextGenerator
- extends AbstractContextGenerator
 
 
 
 
 
| 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 | 
 
AttachContextGenerator
public AttachContextGenerator(Set<String> punctSet)
getContext
public String[] getContext(Object o)
 
getContext
public String[] getContext(Parse[] constituents,
                           int index,
                           List<Parse> rightFrontier,
                           int rfi)
- Parameters:
 constituents - The constituents as they have been constructed so far.index - The constituent index of the node being attached.rightFrontier - The nodes which have been not attach to so far.
- Returns:
 - A set of contextual features about this attachment.
 
 
Copyright © 2010. All Rights Reserved.