Text this: A Multi-granularity Decomposition Mechanism of Complex Tasks Based on Density Peaks