Theory and Application of Text-representing Centroids