:orphan:

.. _train-collate-utils:

Collate Utilities
=================

.. literalinclude:: ../doc_code/collate_utils.py
   :language: python


.. _random-text-generator:

Random Text Generator
=====================

The following helper functions generate random text samples with labels:

.. literalinclude:: ../doc_code/random_text_generator.py
   :language: python