def transform(X):
    """Extract the features.
    This considers X to be a list of lists of texts.
    [
        ['my', 'dog', 'run', 'in', 'the', 'rain']
    ]
    """
    raise NotImplementedError
