Skip to content

Commit

Permalink
update document
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc committed Mar 8, 2016
1 parent c37c313 commit ef645ad
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,23 +301,8 @@ word 1.3.1这个版本是从代码分支[ForElasticsearch1.7.2](https://github.c
OffsetAttribute offsetAttribute = tokenStream.getAttribute(OffsetAttribute.class);
//第几个词
PositionIncrementAttribute positionIncrementAttribute = tokenStream.getAttribute(PositionIncrementAttribute.class);
//词性
PartOfSpeechAttribute partOfSpeechAttribute = tokenStream.getAttribute(PartOfSpeechAttribute.class);
//首字母缩略拼音
AcronymPinyinAttribute acronymPinyinAttribute = tokenStream.getAttribute(AcronymPinyinAttribute.class);
//完整拼音
FullPinyinAttribute fullPinyinAttribute = tokenStream.getAttribute(FullPinyinAttribute.class);
//同义词
SynonymAttribute synonymAttribute = tokenStream.getAttribute(SynonymAttribute.class);
//反义词
AntonymAttribute antonymAttribute = tokenStream.getAttribute(AntonymAttribute.class);

LOGGER.info(charTermAttribute.toString()+" ("+offsetAttribute.startOffset()+" - "+offsetAttribute.endOffset()+") "+positionIncrementAttribute.getPositionIncrement());
LOGGER.info("PartOfSpeech:"+partOfSpeechAttribute.toString());
LOGGER.info("AcronymPinyin:"+acronymPinyinAttribute.toString());
LOGGER.info("FullPinyin:"+fullPinyinAttribute.toString());
LOGGER.info("Synonym:"+synonymAttribute.toString());
LOGGER.info("Antonym:"+antonymAttribute.toString());
}
//消费完毕
tokenStream.close();
Expand Down

0 comments on commit ef645ad

Please sign in to comment.