return new Pair<Edge,Boolean>(edge, true);
}
// check 4-gram precision
Edge retval = null;
double bestScore = 0;
NgramPrecisionModel oracle = new NgramPrecisionModel(new String[]{target});
for (Edge edge : edges) {
double score = oracle.score(edge.getSign(), true);
if (score > bestScore) {
retval = edge; bestScore = score;
}
}
// done