Complete the nearest-anchor classifier: score every anchor by cosine against the doc vector and take the best.