* @param examples
* @return
* @throws Exception
*/
protected Filter getSpecialWordsFilter(ExampleSet examples) throws Exception {
SpecialRegexFilter filter = new SpecialRegexFilter(ExampleSet.MESSAGE_ATTR_NAME);
filter.setInputFormat(examples.getInstances());
Instances filtered = Filter.useFilter(examples.getInstances(), filter);
examples.setInstances(filtered);
return filter;
}