当前位置: 首页>>代码示例>>Java>>正文


Java Filters类代码示例

本文整理汇总了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);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例2: chineseEndSentenceAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseEndSentenceAcceptFilter() {
	return Filters.collectionAcceptFilter(endSentence);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例3: chineseDouHaoAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseDouHaoAcceptFilter() {
	return Filters.collectionAcceptFilter(douHao);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例4: chineseQuoteMarkAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseQuoteMarkAcceptFilter() {
	return Filters.collectionAcceptFilter(quoteMark);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例5: chineseParenthesisAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseParenthesisAcceptFilter() {
	return Filters.collectionAcceptFilter(parenthesis);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例6: chineseColonAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseColonAcceptFilter() {
	return Filters.collectionAcceptFilter(colon);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例7: chineseDashAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseDashAcceptFilter() {
	return Filters.collectionAcceptFilter(dash);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例8: chineseOtherAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseOtherAcceptFilter() {
	return Filters.collectionAcceptFilter(other);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例9: chineseLeftParenthesisAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseLeftParenthesisAcceptFilter() {
	return Filters.collectionAcceptFilter(leftParenthesis);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例10: chineseRightParenthesisAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseRightParenthesisAcceptFilter() {
	return Filters.collectionAcceptFilter(rightParenthesis);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例11: chineseLeftQuoteMarkAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseLeftQuoteMarkAcceptFilter() {
	return Filters.collectionAcceptFilter(leftQuoteMark);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例12: chineseRightQuoteMarkAcceptFilter

import edu.berkeley.nlp.util.Filters; //导入依赖的package包/类
public static Filter<String> chineseRightQuoteMarkAcceptFilter() {
	return Filters.collectionAcceptFilter(rightQuoteMark);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:4,代码来源:ChineseTreebankLanguagePack.java

示例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);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:10,代码来源:AbstractTreebankLanguagePack.java

示例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);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:11,代码来源:AbstractTreebankLanguagePack.java

示例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);
}
 
开发者ID:text-machine-lab,项目名称:CliRel,代码行数:13,代码来源:AbstractTreebankLanguagePack.java


注:本文中的edu.berkeley.nlp.util.Filters类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。