import re


def load_sentence_data(file_path):
    """
    Load string data that each line represents a sample (sentence).
    Every sample has puntuations.
    Length don't have to be fixed.
    # Arguments:
        file_path: str
    # Returns:
        n_data: int, number of rows (sample) in file
        data: list, shape = (n_data, number of words in each sentence)
    """
    data = []
    with open(file_path, 'r', encoding='utf-8') as f:
        for line in f:
            sentence = re.sub("[^a-zA-Z0-9]", " ", line)
            words = sentence.strip().split() # list of str
            data.append(words)
    
    return len(data), data