public class AttachContextGenerator extends AbstractContextGenerator
EOS, punctSet, useLabel, zeroBackOff
Constructor and Description |
---|
AttachContextGenerator(Set<String> punctSet) |
Modifier and Type | Method and Description |
---|---|
String[] |
getContext(Object o) |
String[] |
getContext(Parse[] constituents,
int index,
List<Parse> rightFrontier,
int rfi) |
checkcons, checkcons, cons, cons2, cons3, consbo, getFrontierNodes, production, punct, punctbo, surround
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.Copyright © 2016 The Apache Software Foundation. All rights reserved.