Skip to content

Commit

Permalink
小改动
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Dec 26, 2014
1 parent e60145d commit 0012992
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ public void testSegment() throws Exception
{
int end = entry.end;
int start = entry.begin;
// System.out.printf("[%d:%d]=%s\n", start, end, entry.getValue());
// System.out.printf("[%d:%d]=%s\n", start, end, entry.value);

assertEquals(sentence.substring(start, end), entry.value);
}
}
// System.out.printf("%d ms\n", System.currentTimeMillis() - timeMillis);
System.out.printf("%d ms\n", System.currentTimeMillis() - timeMillis);
}

public void testCoreDictionaryACDAT() throws Exception
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/hankcs/test/seg/TestSegment.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public class TestSegment extends TestCase
{
public void testSeg() throws Exception
{
// HanLP.Config.enableDebug();
Segment segment = new DijkstraSegment().enableCustomDictionary(false);
HanLP.Config.enableDebug();
Segment segment = new DijkstraSegment().enableCustomDictionary(true);
System.out.println(segment.seg("陈膺奥是我的女神"));
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/hankcs/test/seg/testBintrie.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void testPut() throws Exception
// {
// BinTrie<String> trieNormal = new BinTrie<>();
// SmartBinTrie<String> trieSmart = new SmartBinTrie<>();
// BinTrie<CoreDictionary.Attribute> dictionary = CustomDictionary.getTrie();
// BinTrie<CoreDictionary.Attribute> dictionary = CustomDictionary.getBinTrie();
// List<String> wordList = new LinkedList<>();
// for (Map.Entry<String, CoreDictionary.Attribute> entry : dictionary.entrySet())
// {
Expand Down

0 comments on commit 0012992

Please sign in to comment.