/* Evaluate the "selected" candidates in the corpus using its "gold" * candidates. */ public DistanceReport evaluate() { DistanceReport dreport = new DistanceReport(); for (Document<Token> doc : corpus) { if (!doc.isTrain()) { Coordinate systemCoord = doc.getSystemCoord(); Coordinate goldCoord = doc.getGoldCoord(); if (systemCoord != null && goldCoord != null) { dreport.addDistance(systemCoord.distanceInKm(goldCoord)); } } } return dreport; }