public class Hit extends Object
| Constructor and Description |
|---|
Hit() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBegin() |
int |
getEnd() |
DictSegment |
getMatchedDictSegment() |
boolean |
isMatch()
判断是否完全匹配
|
boolean |
isPrefix()
判断是否是词的前缀
|
boolean |
isUnmatch()
判断是否是不匹配
|
void |
setBegin(int begin) |
void |
setEnd(int end) |
void |
setMatch() |
void |
setMatchedDictSegment(DictSegment matchedDictSegment) |
void |
setPrefix() |
void |
setUnmatch() |
public boolean isMatch()
public void setMatch()
public boolean isPrefix()
public void setPrefix()
public boolean isUnmatch()
public void setUnmatch()
public DictSegment getMatchedDictSegment()
public void setMatchedDictSegment(DictSegment matchedDictSegment)
public int getBegin()
public void setBegin(int begin)
public int getEnd()
public void setEnd(int end)
Copyright © 2022. All rights reserved.