public class DefaultFeaturizerContextGenerator extends Object implements FeaturizerContextGenerator
| Constructor and Description |
|---|
DefaultFeaturizerContextGenerator(String flags)
Default is shnc
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getContext(int i,
String[] toks,
String[] tags,
String[] preds)
Returns the context for making a pos tag decision at the specified token
index given the specified tokens and previous tags.
|
String[] |
getContext(int index,
opennlp.tools.util.TokenTag[] sequence,
String[] priorDecisions,
Object[] additionalContext) |
public DefaultFeaturizerContextGenerator(String flags)
flags - public String[] getContext(int index, opennlp.tools.util.TokenTag[] sequence, String[] priorDecisions, Object[] additionalContext)
getContext in interface opennlp.tools.util.BeamSearchContextGenerator<opennlp.tools.util.TokenTag>public String[] getContext(int i, String[] toks, String[] tags, String[] preds)
getContext in interface FeaturizerContextGeneratori - The index of the token for which the context is provided.toks - The tokens in the sentence.tags - pos-tagspreds - The tags assigned to the previous words in the sentence.Copyright © 2012–2017 CoGrOO. All rights reserved.