Class AttachContextGenerator

  extended by
      extended by

public class AttachContextGenerator
extends AbstractContextGenerator

Field Summary
Fields inherited from class
EOS, punctSet, useLabel, zeroBackOff
Constructor Summary
AttachContextGenerator(Set<String> punctSet)
Method Summary
 String[] getContext(Object o)
 String[] getContext(Parse[] constituents, int index, List<Parse> rightFrontier, int rfi)
Methods inherited from class
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


public AttachContextGenerator(Set<String> punctSet)
Method Detail


public String[] getContext(Object o)


public String[] getContext(Parse[] constituents,
                           int index,
                           List<Parse> rightFrontier,
                           int rfi)
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.
A set of contextual features about this attachment.

Copyright © 2010. All Rights Reserved.