from typing import List
from typing import Dict
import json


def load_tacred(path_to_file: str) -> List[Dict]:
    """
    Loads up the tacred split from the json file
    :param path_to_file: json file
    :return:
    """

    # read json file
    with open(path_to_file, 'r') as fp:

        # parse json
        dump: List[Dict] = json.load(fp)

    return dump