本文整理汇总了Java中edu.berkeley.nlp.util.Filters.notFilter方法的典型用法代码示例。如果您正苦于以下问题:Java Filters.notFilter方法的具体用法?Java Filters.notFilter怎么用?Java Filters.notFilter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类edu.berkeley.nlp.util.Filters
的用法示例。
在下文中一共展示了Filters.notFilter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: punctuationTagRejectFilter
import edu.berkeley.nlp.util.Filters; //导入方法依赖的package包/类
/**
* Return a filter that rejects a String that is a punctuation tag name, and
* rejects everything else.
*
* @return The filter
*/
public Filter punctuationTagRejectFilter() {
return Filters.notFilter(punctTagStringAcceptFilter);
}
示例2: punctuationWordRejectFilter
import edu.berkeley.nlp.util.Filters; //导入方法依赖的package包/类
/**
* 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 punctuationWordRejectFilter() {
return Filters.notFilter(punctWordStringAcceptFilter);
}
示例3: evalBIgnoredPunctuationTagRejectFilter
import edu.berkeley.nlp.util.Filters; //导入方法依赖的package包/类
/**
* 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 evalBIgnoredPunctuationTagRejectFilter() {
return Filters.notFilter(eIPunctTagStringAcceptFilter);
}