Package opennlp.tools.ml.maxent
Class BasicContextGenerator
java.lang.Object
opennlp.tools.ml.maxent.BasicContextGenerator
- All Implemented Interfaces:
- ContextGenerator<String>
A 
ContextGenerator implementation for maxent decisions, assuming that the input
 given to the getContext(String) method is a String containing contextual
 predicates separated by spaces, for instance:
 
 cp_1 cp_2 ... cp_n
 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]getContext(String o) Builds up the list of contextual predicates given anobject.
- 
Constructor Details- 
BasicContextGeneratorpublic BasicContextGenerator()
- 
BasicContextGeneratorInitializes aBasicContextGeneratorwith a different separator char. This overwrites the default whitespace separator.- Parameters:
- sep- The- separator characterto use.
 
 
- 
- 
Method Details- 
getContextDescription copied from interface:ContextGeneratorBuilds up the list of contextual predicates given anobject.- Specified by:
- getContextin interface- ContextGenerator<String>
- Parameters:
- o- The- objectused as input.
 
 
-