From 8e750ee621186864a97be64e7f9d521c2d83820d Mon Sep 17 00:00:00 2001 From: hankcs Date: Sun, 20 Feb 2022 23:36:38 -0500 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A8=E6=80=81=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E8=AF=8D=E5=85=B8=E4=B8=8ECustomDictionaryFo?= =?UTF-8?q?rcing=E7=9A=84=E6=90=AD=E9=85=8D=E9=97=AE=E9=A2=98=20fix=20http?= =?UTF-8?q?s://github.com/hankcs/HanLP/issues/1712?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- pom.xml | 2 +- src/main/java/com/hankcs/hanlp/seg/WordBasedSegment.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ac6413518..34637ee76 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ HanLP提供下列功能: com.hankcs hanlp - portable-1.8.2 + portable-1.8.3 ``` diff --git a/pom.xml b/pom.xml index 1a483ea3d..f17d9d22b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.hankcs hanlp - 1.8.2 + 1.8.3 HanLP http://www.hankcs.com/ diff --git a/src/main/java/com/hankcs/hanlp/seg/WordBasedSegment.java b/src/main/java/com/hankcs/hanlp/seg/WordBasedSegment.java index 38e4b0c9b..1dcf5e650 100644 --- a/src/main/java/com/hankcs/hanlp/seg/WordBasedSegment.java +++ b/src/main/java/com/hankcs/hanlp/seg/WordBasedSegment.java @@ -396,7 +396,7 @@ protected void generateWordNet(final WordNet wordNetStorage) // 强制用户词典查询 if (config.forceCustomDictionary) { - CustomDictionary.parseText(charArray, new AhoCorasickDoubleArrayTrie.IHit() + this.customDictionary.parseText(charArray, new AhoCorasickDoubleArrayTrie.IHit() { @Override public void hit(int begin, int end, CoreDictionary.Attribute value)