Select tag and compute similarity