def get_relpron(testset=False):
    """
    Get RelPron data
    :param testset: use testset (default, use devset)
    :return: list of: (term, (SBJ-or-OBJ, (verb, subject, object)))
    """
    if testset:
        subset = 'testset'
    else:
        subset = 'devset'
    items = []
    with open('../data/relpron/'+subset, 'r') as f:
        for line in f:
            # e.g.
            # OBJ garrison_N: organization_N that army_N install_V
            which, noun, head, _, first, second = line.strip().split()
            if which == 'SBJ':
                subj = head
                verb = first
                obj = second
            else:
                subj = first
                verb = second
                obj = head
            # Strip "_N:", "_N", "_V"
            items.append((noun[:-3], (which, (verb[:-2], subj[:-2], obj[:-2]))))
    return items