Class BasicContextGenerator
Generates contexts for maxent decisions, assuming that the input given to the GetContext(string) method is a string containing contextual predicates separated by spaces, e.g.
cp_1 cp_2 ... cp_n
public class BasicContextGenerator : IContextGenerator<string>
- Inheritance
-
BasicContextGenerator
- Implements
- Inherited Members
Constructors
BasicContextGenerator()
public BasicContextGenerator()
BasicContextGenerator(string)
Generates contexts for maxent decisions, assuming that the input given to the GetContext(string) method is a string containing contextual predicates separated by spaces, e.g.
cp_1 cp_2 ... cp_n
public BasicContextGenerator(string separator)
Parameters
separatorstring
Methods
GetContext(string)
Builds up the list of contextual predicates given a string.
public virtual string[] GetContext(string o)
Parameters
ostring
Returns
- string[]