本文整理汇总了Java中edu.stanford.nlp.process.WhitespaceTokenizer类的典型用法代码示例。如果您正苦于以下问题:Java WhitespaceTokenizer类的具体用法?Java WhitespaceTokenizer怎么用?Java WhitespaceTokenizer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WhitespaceTokenizer类属于edu.stanford.nlp.process包,在下文中一共展示了WhitespaceTokenizer类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: WhitespaceTokenizerAnnotator
import edu.stanford.nlp.process.WhitespaceTokenizer; //导入依赖的package包/类
public WhitespaceTokenizerAnnotator(Properties props) {
super(false);
boolean eolIsSignificant =
Boolean.valueOf(props.getProperty(EOL_PROPERTY, "false"));
eolIsSignificant =
(eolIsSignificant ||
Boolean.valueOf(props.getProperty
(StanfordCoreNLP.NEWLINE_SPLITTER_PROPERTY, "false")));
factory = new WhitespaceTokenizer.WhitespaceTokenizerFactory<CoreLabel>
(new CoreLabelTokenFactory(), eolIsSignificant);
}
开发者ID:benblamey,项目名称:stanford-nlp,代码行数:12,代码来源:WhitespaceTokenizerAnnotator.java
示例2: getTokenizerFactory
import edu.stanford.nlp.process.WhitespaceTokenizer; //导入依赖的package包/类
/**
* Return a tokenizer which might be suitable for tokenizing text that
* will be used with this Treebank/Language pair, without tokenizing carriage returns (i.e., treating them as white space). The implementation in AbstractTreebankLanguagePack
* returns a factory for {@link WhitespaceTokenizer}.
*
* @return A tokenizer
*/
public TokenizerFactory<? extends HasWord> getTokenizerFactory() {
return WhitespaceTokenizer.factory(false);
}
开发者ID:FabianFriedrich,项目名称:Text2Process,代码行数:11,代码来源:AbstractTreebankLanguagePack.java
示例3: getTokenizerFactory
import edu.stanford.nlp.process.WhitespaceTokenizer; //导入依赖的package包/类
/**
* Return a tokenizer which might be suitable for tokenizing text that
* will be used with this Treebank/Language pair, without tokenizing carriage returns (i.e., treating them as white space). The implementation in AbstractTreebankLanguagePack
* returns a factory for {@link WhitespaceTokenizer}.
*
* @return A tokenizer
*/
@Override
public TokenizerFactory<? extends HasWord> getTokenizerFactory() {
return WhitespaceTokenizer.factory(false);
}
开发者ID:paulirwin,项目名称:Stanford.NER.Net,代码行数:12,代码来源:AbstractTreebankLanguagePack.java
注:本文中的edu.stanford.nlp.process.WhitespaceTokenizer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论