com.hankcs.hanlp.corpus.document.sentence.word
类 CompoundWord

java.lang.Object
  继承者 com.hankcs.hanlp.corpus.document.sentence.word.CompoundWord
所有已实现的接口:
IWord, Serializable

public class CompoundWord
extends Object
implements IWord

复合词,由两个或以上的word构成

作者:
hankcs
另请参见:
序列化表格

字段摘要
 List<Word> innerList
          由这些词复合而来
 String label
           
 
构造方法摘要
CompoundWord(List<Word> innerList, String label)
           
 
方法摘要
static CompoundWord create(String param)
           
 String getLabel()
           
 String getValue()
           
 void setLabel(String label)
           
 void setValue(String value)
           
 String toString()
           
 Word toWord()
          转换为一个简单词
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

innerList

public List<Word> innerList
由这些词复合而来


label

public String label
构造方法详细信息

CompoundWord

public CompoundWord(List<Word> innerList,
                    String label)
方法详细信息

getValue

public String getValue()
指定者:
接口 IWord 中的 getValue

getLabel

public String getLabel()
指定者:
接口 IWord 中的 getLabel

setLabel

public void setLabel(String label)
指定者:
接口 IWord 中的 setLabel

setValue

public void setValue(String value)
指定者:
接口 IWord 中的 setValue

toString

public String toString()
覆盖:
Object 中的 toString

toWord

public Word toWord()
转换为一个简单词

返回:

create

public static CompoundWord create(String param)


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.