At each level, we cluster the sentences by the method described above and choose the number of clusters k according to the gap statistic (Tibshirani et al., 2000).
for each level, the algorithm will cluster repeatedly with k varying from the minimum to the maximum.