def get_sentence_length(train_data_set, test_data_set):
    """
    Acquire the longer of the maximum sentence lengths of training data and test data.
    :param train_data_set: Raw sentence for training data
    :param test_data_set: Raw sentence for testing data
    :return: Maximum sentence length
    """
    if max([len(sentence.split(" ")) for sentence in train_data_set]) > max([len(sentence.split(" ")) for sentence in test_data_set]):
        sentence_length = max([len(sentence.split(" ")) for sentence in train_data_set])
    else:
        sentence_length = max([len(sentence.split(" ")) for sentence in test_data_set])
    return sentence_length