com.hankcs.hanlp.utility
类 SentencesUtil

java.lang.Object
  继承者 com.hankcs.hanlp.utility.SentencesUtil

public class SentencesUtil
extends Object

文本断句


构造方法摘要
SentencesUtil()
           
 
方法摘要
static boolean hasNature(List<Term> sentence, Nature nature)
          句子中是否含有词性
static List<String> toSentenceList(char[] chars)
           
static List<String> toSentenceList(String content)
          将文本切割为句子
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

SentencesUtil

public SentencesUtil()
方法详细信息

toSentenceList

public static List<String> toSentenceList(String content)
将文本切割为句子

参数:
content -
返回:

toSentenceList

public static List<String> toSentenceList(char[] chars)

hasNature

public static boolean hasNature(List<Term> sentence,
                                Nature nature)
句子中是否含有词性

参数:
sentence -
nature -
返回:


Copyright © 2014–2015 码农场. All rights reserved.