|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.seg.common.Term
public class Term
一个单词,用户可以直接访问此单词的全部属性
| 字段摘要 | |
|---|---|
Nature |
nature
词性 |
int |
offset
在文本中的起始位置(需开启分词器的offset选项) |
String |
word
词语 |
| 构造方法摘要 | |
|---|---|
Term(String word,
Nature nature)
构造一个单词 |
|
| 方法摘要 | |
|---|---|
int |
length()
长度 |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public String word
public Nature nature
public int offset
| 构造方法详细信息 |
|---|
public Term(String word,
Nature nature)
word - 词语nature - 词性| 方法详细信息 |
|---|
public String toString()
Object 中的 toStringpublic int length()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||