Skip to content

Commit

Permalink
为文本推荐增加一个谐音词语的典型案例
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Jun 16, 2016
1 parent cdcfa89 commit 7cd4de0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/com/hankcs/demo/DemoSuggester.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static void main(String[] args)
String[] titleArray =
(
"威廉王子发表演说 呼吁保护野生动物\n" +
"魅惑天后许佳慧不爱“预谋” 独唱《许某某》\n" +
"《时代》年度人物最终入围名单出炉 普京马云入选\n" +
"“黑格比”横扫菲:菲吸取“海燕”经验及早疏散\n" +
"日本保密法将正式生效 日媒指其损害国民知情权\n" +
Expand All @@ -38,5 +39,6 @@ public static void main(String[] args)
System.out.println(suggester.suggest("陈述", 2)); // 语义
System.out.println(suggester.suggest("危机公关", 1)); // 字符
System.out.println(suggester.suggest("mayun", 1)); // 拼音
System.out.println(suggester.suggest("徐家汇", 1)); // 拼音
}
}

0 comments on commit 7cd4de0

Please sign in to comment.