From 020f83e66534c75049793cb0a9ca3dc10c9d88b9 Mon Sep 17 00:00:00 2001 From: Magese Date: Fri, 31 Dec 2021 17:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E9=80=A0=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=88=90=E5=91=98=E5=8F=98=E9=87=8F=E5=A3=B0=E6=98=8E=E4=B8=BA?= =?UTF-8?q?=20final=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/wltea/analyzer/core/IKSegmenter.java | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/wltea/analyzer/core/IKSegmenter.java b/src/main/java/org/wltea/analyzer/core/IKSegmenter.java index 6a54626..2474ce5 100644 --- a/src/main/java/org/wltea/analyzer/core/IKSegmenter.java +++ b/src/main/java/org/wltea/analyzer/core/IKSegmenter.java @@ -41,15 +41,25 @@ import java.util.List; */ public final class IKSegmenter { - // 字符窜reader + /** + * 字符窜reader + */ private Reader input; - // 分词器配置项 - private Configuration cfg; - // 分词器上下文 + /** + * 分词器配置项 + */ + private final Configuration cfg; + /** + * 分词器上下文 + */ private AnalyzeContext context; - // 分词处理器列表 + /** + * 分词处理器列表 + */ private List segmenters; - // 分词歧义裁决器 + /** + * 分词歧义裁决器 + */ private IKArbitrator arbitrator;