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


Java SentenceDetector类代码示例

本文整理汇总了Java中opennlp.tools.sentdetect.SentenceDetector的典型用法代码示例。如果您正苦于以下问题:Java SentenceDetector类的具体用法?Java SentenceDetector怎么用?Java SentenceDetector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SentenceDetector类属于opennlp.tools.sentdetect包,在下文中一共展示了SentenceDetector类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: OpenNLPTokenizer

import opennlp.tools.sentdetect.SentenceDetector; //导入依赖的package包/类
public OpenNLPTokenizer(AttributeFactory factory, SentenceDetector sentenceOp,
                        opennlp.tools.tokenize.Tokenizer tokenizerOp) {
    super(factory);
    termAtt.resizeBuffer(DEFAULT_BUFFER_SIZE);
    if (sentenceOp == null && tokenizerOp == null) {
        throw new IllegalArgumentException("OpenNLPTokenizer: need one or both of Sentence Detector and Tokenizer");
    }
    this.sentenceOp = sentenceOp;
    this.tokenizerOp = tokenizerOp;
}
 
开发者ID:ziqizhang,项目名称:jate,代码行数:11,代码来源:OpenNLPTokenizer.java

示例2: getSentenceDetector

import opennlp.tools.sentdetect.SentenceDetector; //导入依赖的package包/类
/** Obtain a reference to an english sentence detector to use in conjunction 
 *  with the NameFinders
 */
public SentenceDetector getSentenceDetector() {
  return detector;
}
 
开发者ID:asmehra95,项目名称:wiseowl,代码行数:7,代码来源:SentenceDetectorFactory.java

示例3: SentenceTokenizer

import opennlp.tools.sentdetect.SentenceDetector; //导入依赖的package包/类
public SentenceTokenizer(AttributeFactory factory, SentenceDetector detector) {
  super(factory);
  this.detector = detector;
}
 
开发者ID:asmehra95,项目名称:wiseowl,代码行数:5,代码来源:SentenceTokenizer.java

示例4: getSentenceSplitter

import opennlp.tools.sentdetect.SentenceDetector; //导入依赖的package包/类
public SentenceDetector getSentenceSplitter() {
	return _sentDetect;
}
 
开发者ID:etheriau,项目名称:jatetoolkit,代码行数:4,代码来源:NLPToolsControllerOpenNLP.java


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