Module Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Yield NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Yield NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareNotEq Call NameLoad NameLoad NameLoad CompareNotEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Raise Call NameLoad Str Assign NameStore Dict For NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpMult ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad For NameStore Call NameLoad BinOpAdd Call NameLoad NameLoad Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index BinOpAdd NameLoad NameLoad If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict If CompareNotIn NameLoad SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Num AugAssignAdd SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad BinOpMult TupleLoad NameLoad AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Break Expr Yield NameLoad Assign NameStore BinOpAdd Call NameLoad SubscriptLoad NameLoad Slice Num TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad GeneratorExp TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Raise Call NameLoad Str Assign NameStore Call NameLoad SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad decorator_list
N/A N/A random N/A operator N/A bisect N/A json N/A BEGIN ___BEGIN__ N/A END ___END__ accumulate N/A N/A iterable func N/A N/A operator add N/A N/A 
    Cumulative calculations. (Summation, by default.)
    Via: https://docs.python.org/3/library/itertools.html#itertools.accumulate
     N/A it N/A iter iterable N/A total N/A next it N/A N/A total N/A element it N/A N/A total N/A func total element N/A N/A total N/A Chain N/A object N/A N/A 
    A Markov chain representing processes that have both beginnings and ends.
    For example: Sentences.
     __init__ N/A N/A self corpus state_size model N/A None N/A N/A 
        `corpus`: A list of lists, where each outer list is a "run"
        of the process (e.g., a single sentence), and each inner list
        contains the steps (e.g., words) in the run. If you want to simulate
        an infinite process, you can come very close by passing just one, very
        long run.

        `state_size`: An integer indicating the number of items the model
        uses to represent its state. For text generation, 2 or 3 are typical.
         N/A N/A self state_size state_size N/A N/A self model N/A model N/A N/A self build corpus N/A self state_size N/A build N/A N/A self corpus state_size N/A N/A N/A 
        Build a Python representation of the Markov model. Returns a dict
        of dicts where the keys of the outer dict represent all possible states,
        and point to the inner dicts. The inner dicts represent all possibilities
        for the "next" item in the chain, along with the count of times it
        appears.
         N/A N/A N/A N/A type corpus list N/A N/A type N/A corpus N/A 0 list N/A N/A N/A Exception `corpus` must be list of lists N/A model N/A N/A run corpus N/A N/A items N/A N/A N/A N/A BEGIN state_size run N/A END N/A i N/A range N/A N/A len run 1 N/A N/A state N/A tuple N/A items N/A i N/A i state_size N/A follow N/A items N/A N/A i state_size N/A N/A state model N/A N/A N/A model N/A state N/A N/A N/A follow N/A model N/A state N/A N/A N/A N/A model N/A state N/A follow 0 N/A N/A N/A model N/A state N/A follow 1 N/A model N/A move N/A N/A self state N/A N/A N/A 
        Given a state, choose the next item at random.
         N/A N/A choices weights N/A zip N/A N/A N/A N/A self model N/A state items N/A cumdist N/A list N/A accumulate weights N/A r N/A N/A N/A random random N/A cumdist N/A -1 N/A selection N/A choices N/A N/A N/A bisect bisect cumdist r N/A selection N/A gen N/A N/A self init_state N/A None N/A N/A 
        Starting either with a naive BEGIN state, or the provided `init_state`
        (as a tuple), return a generator that will yield successive items
        until the chain reaches the END state.
         N/A state N/A init_state N/A N/A BEGIN N/A self state_size N/A True N/A N/A next_word N/A N/A self move state N/A N/A next_word END N/A N/A N/A N/A next_word N/A state N/A N/A tuple N/A state N/A 1 N/A next_word N/A walk N/A N/A self init_state N/A None N/A N/A 
        Return a list representing a single run of the Markov model, either
        starting with a naive BEGIN state, or the provided `init_state`
        (as a tuple).
         N/A N/A list N/A N/A self gen init_state N/A to_json N/A N/A self N/A N/A N/A 
        Dump the model as a JSON object, for loading later.
         N/A N/A N/A json dumps N/A list N/A N/A N/A self model items N/A from_json N/A N/A cls json_thing N/A N/A N/A 
        Given a JSON object or JSON string that was created by `self.to_json`,
        return the corresponding markovify.Chain.
         N/A N/A N/A basestring N/A N/A N/A NameError N/A N/A basestring str N/A N/A isinstance json_thing basestring N/A N/A obj N/A N/A json loads json_thing N/A N/A obj json_thing N/A N/A isinstance obj list N/A N/A rehydrated N/A dict N/A N/A N/A tuple N/A item N/A 0 N/A item N/A 1 N/A item obj N/A N/A N/A isinstance obj dict N/A N/A rehydrated obj N/A N/A N/A ValueError Object should be dict or list N/A state_size N/A len N/A N/A list N/A N/A rehydrated keys N/A 0 N/A inst N/A cls None state_size rehydrated N/A inst N/A classmethod N/A