Skip to content

Commit

Permalink
fix failing test - i believe this is now testing the expected behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Aug 2, 2023
1 parent 61ef545 commit eef354a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/edu/stanford/nlp/trees/QPTreeTransformerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public void testCompoundModifiers() {
String output = "(ROOT (S (NP (NP (DT a) (NN stake)) (PP (IN of) (NP (QP (XS (RB just) (IN under)) (CD 30)) (NN %))))))";
runTest(input, output);
// "up" should be RB but make sure it also files for RP
String input2 = "(ROOT (S (NP (NP (DT a) (NN stake)) (PP (IN of) (NP (QP (RP up) (IN t0) (CD 30)) (NN million))))))";
String output2 = "(ROOT (S (NP (NP (DT a) (NN stake)) (PP (IN of) (NP (QP (XS (RP up) (IN to)) (CD 30)) (NN %))))))";
String input2 = "(ROOT (S (NP (NP (DT a) (NN stake)) (PP (IN of) (NP (QP (RP up) (IN to) (CD 30)) (NN million))))))";
String output2 = "(ROOT (S (NP (NP (DT a) (NN stake)) (PP (IN of) (NP (QP (XSL (RP up) (IN to)) (CD 30)) (NN million))))))";
runTest(input2, output2);
}

Expand Down

0 comments on commit eef354a

Please sign in to comment.