public void countSemanticDependents(String[] args)
{
SRLReader reader = new SRLReader(0, 1, 2, 3, 4, 5, 6, 8);
reader.open(UTInput.createBufferedFileReader(args[0]));
DEPTree tree;
DEPNode node, dHead, sHead;
int i;
while ((tree = reader.next()) != null)
{
tree.setDependents();
for (i=1; i<tree.size(); i++)
{
node = tree.get(i);
dHead = node.getHead();
for (DEPArc sArc : node.getSHeads())
{
sHead = sArc.getNode();
// sHead = sArc.getNode().getHead();
if (sHead != dHead && sHead != dHead.getHead() && node.isDescendentOf(sHead))
{
System.out.println(node.id+" "+sArc.getNode().id+" "+tree.toStringSRL());
try {System.in.read();} catch (IOException e) {e.printStackTrace();}
}
}