public class CompoundWord extends Object implements IWord, Iterable<Word>
| Modifier and Type | Field and Description |
|---|---|
List<Word> |
innerList
由这些词复合而来
|
String |
label
标签,通常是词性
|
| Constructor and Description |
|---|
CompoundWord(List<Word> innerList,
String label) |
| Modifier and Type | Method and Description |
|---|---|
static CompoundWord |
create(String param) |
String |
getLabel()
获取标签
|
String |
getValue()
获取单词
|
Iterator<Word> |
iterator() |
int |
length()
单词长度
|
void |
setLabel(String label)
设置标签
|
void |
setValue(String value)
设置单词
|
String |
toString() |
Word |
toWord()
转换为一个简单词
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic int length()
IWordpublic Word toWord()
public static CompoundWord create(String param)
Copyright © 2014–2021 码农场. All rights reserved.