private void relabelLightVerb(DEPTree tree)
{
int i, j, size = tree.size();
DEPNode noun, head, arg;
Set<DEPNode> verbs;
SRLArc arc;
for (i=1; i<size; i++)
{
noun = tree.get(i);
if (MPLibEn.isNoun(noun.pos) && noun.getFeat(DEPLib.FEAT_PB) != null)
{
verbs = new HashSet<DEPNode>();
for (DEPArc verb : noun.getSHeadsByLabel(SRLLib.ARGM_PRR))
verbs.add(verb.getNode());
for (j=1; j<size; j++)
{
if (i == j) continue;
arg = tree.get(j);
if ((arc = arg.getSHead(noun)) != null)
{
head = arg.getHead();
if (verbs.contains(head))
arc.setNode(head);
else
arg.removeSHead(arc);
}
}