{
public DEPErrors(String mergeFile)
{
DEPReader gReader = new DEPReader(0, 1, 2, 4, 6, 7, 9);
DEPReader sReader = new DEPReader(0, 1, 3, 5, 6, 8, 10);
DEPTree gTree, sTree;
gReader.open(UTInput.createBufferedFileReader(mergeFile));
sReader.open(UTInput.createBufferedFileReader(mergeFile));
String[] errors = {
"sHead is a dependent of gHead",
"sHead is a grand-dependent of gHead",
"gHead is a sibling of sHead",
"sHead is a descendent of gHead",
"gHead is a sibling of cHead",
"gHead is a dependent of cNode",
"gHead is a grand-dependent of sHead"
};
int[] counts = new int[errors.length+1];
while ((gTree = gReader.next()) != null)
{
sTree = sReader.next();
gTree.setDependents();
sTree.setDependents();
checkErrors(gTree, sTree, counts);
}
int i, size = counts.length, total = counts[0], count, sum = 0;