From 79dbcb518204752b7104cd45e215ed00a973f3a2 Mon Sep 17 00:00:00 2001 From: hankcs Date: Thu, 2 Apr 2015 21:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=89=88=E6=9C=AC=E5=8F=B7+1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/dictionary/person/nr.txt | 4 +++- pom.xml | 2 +- src/test/java/com/hankcs/demo/DemoCustomDictionary.java | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/data/dictionary/person/nr.txt b/data/dictionary/person/nr.txt index 61f2cb4c7..cc70d242d 100644 --- a/data/dictionary/person/nr.txt +++ b/data/dictionary/person/nr.txt @@ -22161,4 +22161,6 @@ ypy L 1 ~ L 1 汪洋张 A 1 可在 A 1 -可经 A 1 \ No newline at end of file +可经 A 1 +二字 A 1 +可刷 A 1 \ No newline at end of file diff --git a/pom.xml b/pom.xml index b94a09c9f..bd4baaf63 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.hankcs hanlp - 1.1.1 + 1.1.2 HanLP http://www.hankcs.com/ diff --git a/src/test/java/com/hankcs/demo/DemoCustomDictionary.java b/src/test/java/com/hankcs/demo/DemoCustomDictionary.java index a87e78010..c2dc3b14a 100644 --- a/src/test/java/com/hankcs/demo/DemoCustomDictionary.java +++ b/src/test/java/com/hankcs/demo/DemoCustomDictionary.java @@ -41,7 +41,7 @@ public static void main(String[] args) // AhoCorasickDoubleArrayTrie自动机分词 final char[] charArray = text.toCharArray(); - CoreDictionary.trie.parseText(charArray, new AhoCorasickDoubleArrayTrie.IHit() + CustomDictionary.parseText(charArray, new AhoCorasickDoubleArrayTrie.IHit() { @Override public void hit(int begin, int end, CoreDictionary.Attribute value)