script for agglomerated-feature-based document clustering