本文整理汇总了Java中edu.berkeley.nlp.util.Filters类的典型用法代码示例。如果您正苦于以下问题:Java Filters类的具体用法?Java Filters怎么用?Java Filters使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Filters类属于edu.berkeley.nlp.util包,在下文中一共展示了Filters类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: chineseCommaAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseCommaAcceptFilter() {
return Filters.collectionAcceptFilter(comma);
}
示例2: chineseEndSentenceAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseEndSentenceAcceptFilter() {
return Filters.collectionAcceptFilter(endSentence);
}
示例3: chineseDouHaoAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseDouHaoAcceptFilter() {
return Filters.collectionAcceptFilter(douHao);
}
示例4: chineseQuoteMarkAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseQuoteMarkAcceptFilter() {
return Filters.collectionAcceptFilter(quoteMark);
}
示例5: chineseParenthesisAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseParenthesisAcceptFilter() {
return Filters.collectionAcceptFilter(parenthesis);
}
示例6: chineseColonAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseColonAcceptFilter() {
return Filters.collectionAcceptFilter(colon);
}
示例7: chineseDashAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseDashAcceptFilter() {
return Filters.collectionAcceptFilter(dash);
}
示例8: chineseOtherAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseOtherAcceptFilter() {
return Filters.collectionAcceptFilter(other);
}
示例9: chineseLeftParenthesisAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseLeftParenthesisAcceptFilter() {
return Filters.collectionAcceptFilter(leftParenthesis);
}
示例10: chineseRightParenthesisAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseRightParenthesisAcceptFilter() {
return Filters.collectionAcceptFilter(rightParenthesis);
}
示例11: chineseLeftQuoteMarkAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseLeftQuoteMarkAcceptFilter() {
return Filters.collectionAcceptFilter(leftQuoteMark);
}
示例12: chineseRightQuoteMarkAcceptFilter
import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseRightQuoteMarkAcceptFilter() {
return Filters.collectionAcceptFilter(rightQuoteMark);
}
示例13: 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);
}
示例14: 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);
}
示例15: 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);
}