A knowledge-based approach to semi-automatic indexing