Skip to content

Commit d5bfbb8

Browse files
committed
Update ... apparently there's a shorter path here
These items in the semgrex are now ordered
1 parent db84999 commit d5bfbb8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void testTregexJson() throws IOException {
125125

126126
@Test
127127
public void testSemgrexJson() throws IOException {
128-
String expected="{ \"sentences\": [ { \"0\": { \"text\": \"ate\", \"begin\": 2, \"end\": 3, \"$obj\": { \"text\": \"fish\", \"begin\": 4, \"end\": 5 }, \"$verb\": { \"text\": \"ate\", \"begin\": 2, \"end\": 3 } }, \"length\": 1 } ]}".replaceAll(" ", "");
128+
String expected="{ \"sentences\": [ { \"0\": { \"text\": \"ate\", \"begin\": 2, \"end\": 3, \"$verb\": { \"text\": \"ate\", \"begin\": 2, \"end\": 3 }, \"$obj\": { \"text\": \"fish\", \"begin\": 4, \"end\": 5 } }, \"length\": 1 } ]}".replaceAll(" ", "");
129129

130130
String query = "The dog ate a fish";
131131
byte[] message = query.getBytes("utf-8");
@@ -143,7 +143,7 @@ public void testSemgrexJson() throws IOException {
143143

144144
@Test
145145
public void testSemgrexAnnotation() throws IOException {
146-
String expected = "result { result { match { matchIndex: 3 node { name: \"obj\" matchIndex: 5 } node { name: \"verb\" matchIndex: 3 } } }}".replaceAll(" ", "");
146+
String expected = "result { result { match { matchIndex: 3 node { name: \"verb\" matchIndex: 3 } node { name: \"obj\" matchIndex: 5 } } }}".replaceAll(" ", "");
147147
String query = "The dog ate a fish";
148148
byte[] message = query.getBytes("utf-8");
149149
Properties props = new Properties();

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ public void testDependencyPathBetweenRegressions() throws IOException {
204204
add("Geledi");
205205
add("<-nmod:of-");
206206
add("Sultanate");
207-
add("<-conj:and-");
208-
add("commander");
209207
add("<-acl:relcl-");
210208
add("Sultanate");
211209
add("<-appos-");

0 commit comments

Comments
 (0)