Make the constructor of WeightedWordsFilter protected