(self, sequence)
Generates a Markov model for a sequence, given
        as a single list of strings
Generates a Markov model for a sequence, given
        as a single list of strings
Generates a Markov model for a sequence given as a single list of strings
def __init__(self, sequence):
        """
        Generates a Markov model for a sequence, given
        as a single list of strings
        """

        ## The sequence to be modeled
        self.sequence = sequence

        ## The transition probabilities of higher-order Markov chains
        self.P = {}

        ## the set of states of higher-order Markov chains
        self.states = {}
        self.states[1] = set(sequence)
def __init__ ( self , sequence ) : ## The sequence to be modeled self . sequence = sequence ## The transition probabilities of higher-order Markov chains self . P = { } ## the set of states of higher-order Markov chains self . states = { } self . states [ 1 ] = set ( sequence )