// use metric to decide
if (rdd > 5 and max_ratio >= .7 and r >= .05 and
lr >= .05 and sub_to_root_dd >= .1 and
(is_edge(ent) or len(root(ent)) > 2)):
make_corefs(hg, edge, subs[best_pos])
count += 1
After Change
// use metric to decide
if (rdd > 5 and max_ratio >= .7 and r >= .05 and
lr >= .05 and sub_to_root_dd >= .1 and
(not edge.is_atom() or len(edge.root()) > 2)):
make_corefs(hg, edge, subs[best_pos])
count += 1