public class AttachContextGenerator extends AbstractContextGenerator
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) |
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 © 2020 The Apache Software Foundation. All rights reserved.