def match_inner(x, y, i, j):
    """
    Match whether the token is inside the entity
    :param x: The start of the entity
    :param y: The end of the entity
    :param i: The start of the token
    :param j: The end of the token
    """
    return x <= i and y >= j