public class BuildContextGenerator extends AbstractContextGenerator
EOS, punctSet, useLabel, zeroBackOff| Constructor and Description |
|---|
BuildContextGenerator()
Creates a new context generator for making decisions about combining
constituents together.
|
BuildContextGenerator(opennlp.tools.dictionary.Dictionary dict,
Map<String,Object> resources) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getContext(Object o) |
String[] |
getContext(Parse[] constituents,
int index)
Returns the predictive context used to determine how constituent at the
specified index should be combined with other contisuents.
|
checkcons, checkcons, cons, cons2, cons3, consbo, getFrontierNodes, production, punct, punctbo, surroundpublic BuildContextGenerator()
public String[] getContext(Parse[] constituents, int index)
constituents - The constituents which have yet to be combined into new
constituents.index - The index of the constituent whcihi is being considered.Copyright © 2017 IXA pipes. All rights reserved.