Class 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

    • 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicContextGenerator

        public BasicContextGenerator()
      • BasicContextGenerator

        public BasicContextGenerator​(java.lang.String sep)
    • 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 interface ContextGenerator<java.lang.String>