def pickle_context(context, template=None):
    pickle = get_pickle()
    if not isinstance(context, BaseContext):
        raise TemplateSyntaxError('Phased context is not a Context instance')
    pickled_context = pickle.dumps(flatten_context(context), protocol=pickle.HIGHEST_PROTOCOL)
    if template is None:
        template = '{# stashed context: "%s" #}'
    return template % base64.standard_b64encode(pickled_context)
Returns a list of sentences, where punctuation marks have been split from words.
dataset/ETHPy150Open codysoyland/django-phased/phased/utils.py/pickle_context--crossover with--dataset/ETHPy150Open clips/pattern/pattern/text/nl/__init__.py/tokenize