From 06e8a23d1828ae993aef21b81829a7729d06f224 Mon Sep 17 00:00:00 2001 From: zhipingpan <42376954+zhipingpan@users.noreply.github.com> Date: Wed, 1 May 2019 16:57:44 +0800 Subject: [PATCH] Update AnalyzeContext.java (#673) --- src/main/java/org/wltea/analyzer/core/AnalyzeContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java b/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java index 5bf1ac90..890d9080 100644 --- a/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java +++ b/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java @@ -268,13 +268,13 @@ void outputToResult(){ while(l != null){ this.results.add(l); //字典中无单字,但是词元冲突了,切分出相交词元的前一个词元中的单字 - int innerIndex = index + 1; + /*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 = l.getBegin() + l.getLength();