/** * Returns a filter that accepts a String that is not a punctuation word, and rejects punctuation. * If one can't tell for sure (as for ' in the Penn Treebank), it makes the best guess that it * can. * * @return The Filter */ public Filter<String> punctuationWordRejectFilter() { return Filters.notFilter(punctWordStringAcceptFilter); }
/** * Returns a filter that accepts everything except a String that is a punctuation tag that should * be ignored by EVALB-style evaluation. Traditionally, EVALB has ignored a subset of the total * set of punctuation tags in the English Penn Treebank (quotes and period, comma, colon, etc., * but not brackets) * * @return The Filter */ public Filter<String> evalBIgnoredPunctuationTagRejectFilter() { return Filters.notFilter(eIPunctTagStringAcceptFilter); }
/** * Return a filter that rejects a String that is a punctuation tag name, and rejects everything * else. * * @return The filter */ public Filter<String> punctuationTagRejectFilter() { return Filters.notFilter(punctTagStringAcceptFilter); }