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