opennlp.maxent
Class BasicContextGenerator
java.lang.Object
opennlp.maxent.BasicContextGenerator
- All Implemented Interfaces:
- ContextGenerator
public class BasicContextGenerator
- extends Object
- implements ContextGenerator
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
BasicContextGenerator
public BasicContextGenerator()
BasicContextGenerator
public BasicContextGenerator(String sep)
getContext
public String[] getContext(Object o)
- Builds up the list of contextual predicates given a String.
- Specified by:
getContext
in interface ContextGenerator
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.