Variable threshold for training stopwords