Skip to content

Commit f2e5a16

Browse files
committed
Update unit test to accommodate some of the new rules
1 parent 400f0b5 commit f2e5a16

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class MorphologyTest extends TestCase {
2323
"<br>", "-0800", "an", "out-rode", "viii",
2424
"b-", "s", "hath", "'ll", "d",
2525
"re", "no", "r", "du",
26+
"better", "gooier", "glummer", "tamer", "sicker",
27+
"best", "gooiest", "glummest", "tamest", "sickest",
28+
"better", "earlier", // should not change if JJ
2629
};
2730

2831
private String[] exTags = { "NNS", "NNS", "VBD", "NN",
@@ -40,12 +43,15 @@ public class MorphologyTest extends TestCase {
4043
"SYM", "CD", "DT", "VBD", "FW",
4144
"AFX", "VBZ", "VBP", "MD", "MD",
4245
"VBP", "VBP", "VBP", "VBP",
46+
"JJR", "JJR", "JJR", "JJR", "JJR",
47+
"JJS", "JJS", "JJS", "JJS", "JJS",
48+
"JJ", "JJ",
4349
};
4450

4551
private String[] exAnswers = {"brethren", "duck", "see", "saw",
4652
"run", "make", "makk",
4753
"stop", "xopp",
48-
"cleaner", "cleaner", "take", "buy",
54+
"cleaner", "clean", "take", "buy",
4955
"be", "be", "do", "not", "will",
5056
"be", "'s", "can", "she", "she", "they",
5157
"Books", "light-weight", "cease-fire",
@@ -57,6 +63,9 @@ public class MorphologyTest extends TestCase {
5763
"<br>", "-0800", "a", "out-ride", "viii",
5864
"b-", "be", "have", "will", "would",
5965
"be", "know", "be", "do",
66+
"good", "gooey", "glum", "tame", "sick",
67+
"good", "gooey", "glum", "tame", "sick",
68+
"better", "earlier",
6069
};
6170

6271
public void testMorph() {

0 commit comments

Comments
 (0)