Bugfix: compute similarity after all sentences have been added.