def span2toks(span, document):
    """
    :param span: span array representing [start, end]
    :param document: list of tokens from which to extract span tokens
    :return: tokens from document indicated by span indices
    """
    return document[span[0]:span[1] + 1]