def max_values_squad(data_train):
    """
    Function to compute the maximum length of sentences in
    paragraphs and questions

    Arguments:
    -----------
    data_train: list containing the entire dataset
    Returns:
    --------
    maximum length of question and paragraph
    """
    max_hypothesis = len(data_train[0][1])
    max_premise = len(data_train[0][0])

    for ele in data_train:
        len1 = len(ele[0])
        len2 = len(ele[1])
        if max_premise < len1:
            max_premise = len1
        if max_hypothesis < len2:
            max_hypothesis = len2

    return max_premise, max_hypothesis