@classmethod
    def from_chain(cls, chain_json, corpus=None):
        chain = Chain.from_json(chain_json)
        return cls(corpus or '', None, chain=chain)
Init a Text class based on an existing chain JSON string or object
dataset/ETHPy150Open jsvine/markovify/markovify/text.py/Text.from_chain