revert to previous commit
This commit is contained in:
parent
125ac3c5e5
commit
cfdba08f46
@ -267,14 +267,6 @@ class AnalyzeContext {
|
|||||||
Lexeme l = path.pollFirst();
|
Lexeme l = path.pollFirst();
|
||||||
while(l != null){
|
while(l != null){
|
||||||
this.results.add(l);
|
this.results.add(l);
|
||||||
//字典中无单字,但是词元冲突了,切分出相交词元的前一个词元中的单字
|
|
||||||
int innerIndex = index + 1;
|
|
||||||
for (; innerIndex < index + l.getLength(); innerIndex++) {
|
|
||||||
Lexeme innerL = path.peekFirst();
|
|
||||||
if (innerL != null && innerIndex == innerL.getBegin()) {
|
|
||||||
this.outputSingleCJK(innerIndex - 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//将index移至lexeme后
|
//将index移至lexeme后
|
||||||
index = l.getBegin() + l.getLength();
|
index = l.getBegin() + l.getLength();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user