from typing import List


def get_pairs_of_int_two_from_text(text: str, space: str) -> List[List[int]]:
    """Creates pairs of two from the given text

    :param text: Text we want to create pairs from
    :type text: str

    :param space: Target space
    :type space: str

    :return: Pairs of two in list form
    :rtype: List(List(int))
    """
    return [
        [space.index(text[i]), space.index(text[i + 1])]
        for i in range(0, len(text) - 1, 2)
    ]