Skip to content

Commit 836f203

Browse files
committed
update tests
1 parent 808f3e0 commit 836f203

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

itest/src/edu/stanford/nlp/pipeline/ParserAnnotatorITest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ public void testMaxLen() {
152152
pipeline = new StanfordCoreNLP(props);
153153
document = new Annotation(TEXT);
154154
pipeline.annotate(document);
155-
156155
assertEquals(ANSWER[0], document.get(CoreAnnotations.SentencesAnnotation.class).get(0).get(TreeCoreAnnotations.TreeAnnotation.class).toString());
157156

158157
props.setProperty("annotators", "tokenize, ssplit, parse");
@@ -282,8 +281,8 @@ public void verifyAnswers(Annotation document, String[] expected) {
282281

283282
static final String[] ANSWER = {
284283
// TODO: this is actually the wrong parse!
285-
"(ROOT (S (NP (PRP I)) (VP (VBD saw) (NP (PRP him)) (S (VP (VBG ordering) (NP (PRP them)) (PP (IN to) (NP (NN saw)))))) (. .)))",
286-
"(ROOT (S (NP (NP (NNP Jack) (POS 's)) (NN father)) (VP (VBZ has) (RB n't) (VP (VBN played) (NP (NP (NN golf)) (PP (IN since) (NP (CD 20) (NNS years)))) (PP (IN ago)))) (. .)))",
284+
"(ROOT (S (NP (PRP I)) (VP (VBD saw) (NP (PRP him)) (S (VP (VBG ordering) (NP (PRP them)) (S (VP (TO to) (VP (VB saw))))))) (. .)))",
285+
"(ROOT (S (NP (NP (NNP Jack) (POS 's)) (NN father)) (VP (VBZ has) (RB n't) (VP (VBN played) (NP (NN golf)) (ADVP (IN since) (NP (CD 20) (NNS years)) (RB ago)))) (. .)))",
287286
"(ROOT (S (NP (PRP I)) (VP (VBP 'm) (VP (VBG going) (PP (IN to) (NP (DT the) (NN bookstore))) (S (VP (TO to) (VP (VB return) (NP (NP (DT a) (NN book)) (SBAR (S (NP (NP (NNP Jack)) (CC and) (NP (PRP$ his) (NNS friends))) (VP (VBD bought) (NP (PRP me))))))))))) (. .)))"
288287
};
289288

itest/src/edu/stanford/nlp/simple/SentenceAlgorithmsITest.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,17 @@ public void testDependencyPathBetweenRegressions() throws IOException {
198198
add("forced");
199199
add("<-amod-");
200200
add("governors");
201-
add("<-nsubj-");
202-
add("pay");
203-
add("<-acl:relcl-");
201+
add("<-dep-");
202+
add("dominance");
203+
add("<-appos-");
204204
add("Geledi");
205205
add("<-nmod:of-");
206206
add("Sultanate");
207207
add("<-conj:and-");
208+
add("commander");
209+
add("<-acl:relcl-");
210+
add("Sultanate");
211+
add("<-appos-");
208212
add("Sultanate");
209213
add("<-nmod:including-");
210214
add("trade");

0 commit comments

Comments
 (0)