def _get_indices(term, chunk):
    """Get indices where term appears in chunk

    Parameters
    ----------
    term : str
        The token to look for in the `chunk`
    chunk : [str]
        A chunk of text in which to look for instances of `term`

    Returns
    -------
    [int]
        Indices in `chunk` where `term` was found

    Examples
    --------
    >>> term = 'a'
    >>> chunk = ['a', 'a', 'b', 'b', 'a']
    >>> _get_indices(term, chunk)
    [0, 1, 5]

    """
    return [i for i, token in enumerate(chunk) if token == term]