Package opennlp.tools.ml.maxent
Class BasicContextGenerator
java.lang.Object
opennlp.tools.ml.maxent.BasicContextGenerator
- All Implemented Interfaces:
ContextGenerator<String>
Generate contexts for maxent decisions, assuming that the input
given to the getContext() method is a String containing contextual
predicates separated by spaces.
e.g:
cp_1 cp_2 ... cp_n
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getContext(String o) Builds up the list of contextual predicates given a String.
-
Constructor Details
-
BasicContextGenerator
public BasicContextGenerator() -
BasicContextGenerator
-
-
Method Details
-
getContext
Builds up the list of contextual predicates given a String.- Specified by:
getContextin interfaceContextGenerator<String>
-