from typing import Tuple
from typing import List


def read_data(data_path: str, labels_path: str) -> Tuple[List[str], List[str]]:
    """ Read data and labels from files to memory """
    # read data
    with open(data_path, "r") as input_file_stream:
        data = [line.strip() for line in input_file_stream]

    # read labels
    with open(labels_path, "r") as input_file_stream:
        labels = [line.strip() for line in input_file_stream]

    # ensure data sanity
    assert len(data) == len(labels)

    # return all
    return data, labels