Skip to content

Commit 533504d

Browse files
committed
测试用例
1 parent cc4bbeb commit 533504d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/main/java/com/hankcs/hanlp/corpus/document/sentence/Sentence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public int length()
9393
}
9494

9595
/**
96-
* 原始文本形式
96+
* 原始文本形式(无标注,raw text)
9797
* @return
9898
*/
9999
public String text()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.hankcs.hanlp.corpus.document.sentence;
2+
3+
import junit.framework.TestCase;
4+
5+
public class SentenceTest extends TestCase
6+
{
7+
public void testText() throws Exception
8+
{
9+
assertEquals("人民网纽约时报", Sentence.create("人民网/nz [纽约/nsf 时报/n]/nz").text());
10+
}
11+
}

0 commit comments

Comments
 (0)