Skip to content

Commit f6f0053

Browse files
committed
Minor whitespace changes
1 parent 301c723 commit f6f0053

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

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

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,30 @@ public class WordToSentenceProcessorTest extends TestCase {
3030

3131

3232
private static void checkResult(WordToSentenceProcessor<CoreLabel> wts,
33-
String testSentence, String... gold) {
33+
String testSentence, String... gold) {
3434
checkResult(wts, ud, testSentence, gold);
3535
}
3636

3737
private static void checkResult(WordToSentenceProcessor<CoreLabel> wts,
3838
Annotator tokenizer,
39-
String testSentence, String ... gold) {
39+
String testSentence, String ... gold) {
4040
Annotation annotation = new Annotation(testSentence);
4141
udNL.annotate(annotation);
4242
List<CoreLabel> tokens = annotation.get(CoreAnnotations.TokensAnnotation.class);
4343
List<List<CoreLabel>> sentences = wts.process(tokens);
4444

45-
assertEquals("Output number of sentences didn't match:\n" +
46-
Arrays.toString(gold) + " vs. \n" + sentences + '\n',
47-
gold.length, sentences.size());
45+
assertEquals("Output number of sentences didn't match:\n" + Arrays.toString(gold) + " vs. \n" + sentences + '\n',
46+
gold.length, sentences.size());
4847

4948
Annotation[] goldAnnotations = new Annotation[gold.length];
5049
for (int i = 0; i < gold.length; ++i) {
5150
goldAnnotations[i] = new Annotation(gold[i]);
5251
tokenizer.annotate(goldAnnotations[i]);
53-
List<CoreLabel> goldTokens =
54-
goldAnnotations[i].get(CoreAnnotations.TokensAnnotation.class);
52+
List<CoreLabel> goldTokens = goldAnnotations[i].get(CoreAnnotations.TokensAnnotation.class);
5553
List<CoreLabel> testTokens = sentences.get(i);
5654
int goldTokensSize = goldTokens.size();
57-
assertEquals("Sentence lengths didn't match:\n" +
58-
goldTokens + " vs. \n" + testTokens + '\n',
59-
goldTokensSize, testTokens.size());
55+
assertEquals("Sentence lengths didn't match:\n" + goldTokens + " vs. \n" + testTokens + '\n',
56+
goldTokensSize, testTokens.size());
6057
for (int j = 0; j < goldTokensSize; ++j) {
6158
assertEquals(goldTokens.get(j).word(), testTokens.get(j).word());
6259
}
@@ -215,9 +212,9 @@ public void testExclamationPoint() {
215212

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

222219
}
223220

0 commit comments

Comments
 (0)