-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30724,4 +30724,5 @@ | |
龥=yue4 | ||
重启=chong2,qi3 | ||
还款=huan2,kuan3 | ||
侠传=xia2,zhuan4 | ||
侠传=xia2,zhuan4 | ||
𩽾𩾌=an1,kang1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/java/com/hankcs/hanlp/dictionary/py/PinyinDictionaryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.hankcs.hanlp.dictionary.py; | ||
|
||
import com.hankcs.hanlp.HanLP; | ||
import junit.framework.TestCase; | ||
|
||
import java.util.Arrays; | ||
|
||
public class PinyinDictionaryTest extends TestCase | ||
{ | ||
|
||
public void testGet() | ||
{ | ||
System.out.println(Arrays.toString(PinyinDictionary.get("鼖"))); | ||
System.out.println(PinyinDictionary.convertToPinyin("\uD867\uDF7E\uD867\uDF8C")); | ||
System.out.println(HanLP.convertToPinyinList("\uD867\uDF7E\uD867\uDF8C")); | ||
} | ||
} |
b9a899b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit has been mentioned on Butterfly Effect. There might be relevant details there:
https://bbs.hankcs.com/t/topic/2777/3