| Constructor and Description |
|---|
SentimentContextGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getContext(int index,
String[] sequence,
String[] priorDecisions,
Object[] additionalContext)
Returns the context
|
String[] |
getContext(String[] text)
Returns the context
|
public String[] getContext(String[] text)
text - the given text to be returned as contextpublic String[] getContext(int index, String[] sequence, String[] priorDecisions, Object[] additionalContext)
getContext in interface opennlp.tools.util.BeamSearchContextGenerator<String>index - the index of the contextsequence - String sequence givenpriorDecisions - decisions given earlieradditionalContext - any additional contextCopyright © 2016. All rights reserved.