def reform_links(self, node, ents):
    """
    Get the links from a PointerNode,
    and convert them to the form required by SemFuncModel
    :param node: a PointerNode
    :param ents: a matrix of entity vectors (indexed by nodeid)
    """
    out_labs = []
    out_vecs = []
    in_labs = []
    in_vecs = []
    for l in node.get_out(itr=True):
        out_labs.append(l.rargname)
        out_vecs.append(ents[l.end])
    for l in node.get_in(itr=True):
        in_labs.append(l.rargname)
        in_vecs.append(ents[l.start])
    return out_labs, out_vecs, in_labs, in_vecs