public class AnalysisWord extends Object implements Word
Constructor and Description |
---|
AnalysisWord(org.apache.lucene.analysis.tokenattributes.CharTermAttribute word)
构造
|
Modifier and Type | Method and Description |
---|---|
int |
getEndOffset()
获取本词的结束位置
|
int |
getStartOffset()
获取本词的起始位置
|
String |
getText()
获取单词文本
|
String |
toString() |
public AnalysisWord(org.apache.lucene.analysis.tokenattributes.CharTermAttribute word)
word
- CharTermAttribute
public int getStartOffset()
Word
getStartOffset
in interface Word
public int getEndOffset()
Word
getEndOffset
in interface Word
Copyright © 2024. All rights reserved.