类 com.hankcs.hanlp.corpus.document.sentence.word.Word
的使用

使用 Word 的软件包
com.hankcs.hanlp.corpus.document   
com.hankcs.hanlp.corpus.document.sentence.word   
com.hankcs.hanlp.corpus.util   
com.hankcs.hanlp.model.trigram   
 

com.hankcs.hanlp.corpus.documentWord 的使用
 

返回变量类型为 Word 的类型的 com.hankcs.hanlp.corpus.document 中的方法
static List<List<Word>> CorpusLoader.convert2SimpleSentenceList(String path)
           
 List<List<Word>> Document.getSimpleSentenceList()
          获取简单的句子列表,其中复合词会被拆分为简单词
 List<List<Word>> Document.getSimpleSentenceList(boolean spilt)
          获取简单的句子列表
 List<List<Word>> Document.getSimpleSentenceList(Set<String> labelSet)
          获取简单的句子列表,其中复合词的标签如果是set中指定的话会被拆分为简单词
 List<Word> Document.getSimpleWordList()
           
 

com.hankcs.hanlp.corpus.document.sentence.wordWord 的使用
 

类型参数类型为 Wordcom.hankcs.hanlp.corpus.document.sentence.word 中的字段
 List<Word> CompoundWord.innerList
          由这些词复合而来
 

返回 Wordcom.hankcs.hanlp.corpus.document.sentence.word 中的方法
static Word Word.create(String param)
          通过参数构造一个单词
 Word CompoundWord.toWord()
          转换为一个简单词
 

类型变量类型为 Wordcom.hankcs.hanlp.corpus.document.sentence.word 中的构造方法参数
CompoundWord(List<Word> innerList, String label)
           
 

com.hankcs.hanlp.corpus.utilWord 的使用
 

返回 Wordcom.hankcs.hanlp.corpus.util 中的方法
static Word Precompiler.compile(IWord word)
           
static Word Precompiler.compile(Word word)
          将一个单词编译为等效字串
 

参数类型为 Wordcom.hankcs.hanlp.corpus.util 中的方法
static Word Precompiler.compile(Word word)
          将一个单词编译为等效字串
 

类型变量类型为 Wordcom.hankcs.hanlp.corpus.util 中的方法参数
static List<List<IWord>> CorpusUtil.convert2CompatibleList(List<List<Word>> simpleSentenceList)
          将word列表转为兼容的IWord列表
 

com.hankcs.hanlp.model.trigramWord 的使用
 

类型变量类型为 Wordcom.hankcs.hanlp.model.trigram 中的方法参数
 void CharacterBasedGenerativeModel.learn(List<Word> wordList)
          让模型观测一个句子
 



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