Package opennlp.tools.ml.maxent
Class BasicContextGenerator
- java.lang.Object
-
- opennlp.tools.ml.maxent.BasicContextGenerator
-
- All Implemented Interfaces:
ContextGenerator<java.lang.String>
public class BasicContextGenerator extends java.lang.Object implements ContextGenerator<java.lang.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 Constructor Description BasicContextGenerator()
BasicContextGenerator(java.lang.String sep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getContext(java.lang.String o)
Builds up the list of contextual predicates given a String.
-
-
-
Method Detail
-
getContext
public java.lang.String[] getContext(java.lang.String o)
Builds up the list of contextual predicates given a String.- Specified by:
getContext
in interfaceContextGenerator<java.lang.String>
-
-