Skip to content

Commit d5d5707

Browse files
committed
shuffle deck chairs
1 parent 78153ad commit d5d5707

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/src/edu/stanford/nlp/process/WordToSentenceProcessorTest.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717

1818
public class WordToSentenceProcessorTest extends TestCase {
1919

20-
private static final Annotator ud = new TokenizerAnnotator(false, "en");
21-
private static final Annotator udNL = new TokenizerAnnotator(false, "en", "invertible,tokenizeNLs=true");
22-
private static final Annotator wsNL =
20+
private static final TokenizerAnnotator ud =
21+
new TokenizerAnnotator(false, "en");
22+
private static final TokenizerAnnotator udNL =
23+
new TokenizerAnnotator(false, "en", "invertible,tokenizeNLs=true");
24+
private static final TokenizerAnnotator wsNL =
2325
new TokenizerAnnotator(false, PropertiesUtils.asProperties("tokenize.whitespace", "true", "invertible", "true", "tokenizeNLs", "true"));
2426

2527
private static final WordToSentenceProcessor<CoreLabel> wts = new WordToSentenceProcessor<>();
@@ -35,7 +37,7 @@ private static void checkResult(WordToSentenceProcessor<CoreLabel> wts,
3537
}
3638

3739
private static void checkResult(WordToSentenceProcessor<CoreLabel> wts,
38-
Annotator tokenizer,
40+
TokenizerAnnotator tokenizer,
3941
String testSentence, String ... gold) {
4042
Annotation annotation = new Annotation(testSentence);
4143
udNL.annotate(annotation);
@@ -211,7 +213,9 @@ public void testExclamationPoint() {
211213
}
212214

213215
public void testChinese() {
214-
checkResult(cwts, wsNL,"巴拉特 说 : 「 我们 未 再 获得 任何 结果 。 」 < 金融时报 ? > 《 金融时报 》 周三",
216+
checkResult(cwts,
217+
wsNL,
218+
"巴拉特 说 : 「 我们 未 再 获得 任何 结果 。 」 < 金融时报 ? > 《 金融时报 》 周三",
215219
"巴拉特 说 : 「 我们 未 再 获得 任何 结果 。 」",
216220
"< 金融时报 ? >",
217221
"《 金融时报 》 周三");

0 commit comments

Comments
 (0)