Skip to content

Commit 00dde80

Browse files
committed
wait a second...
not clear how this ever worked in the first place
1 parent 51a1c05 commit 00dde80

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/edu/stanford/nlp/semgraph/semgrex/ssurgeon/Ssurgeon.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class Ssurgeon {
5252

5353
private Ssurgeon() {}
5454

55+
// TODO: get rid of this if possible
5556
public static Ssurgeon inst() {
5657
synchronized(Ssurgeon.class) {
5758
if (instance == null)
@@ -287,35 +288,35 @@ public static SsurgeonEdit parseEditLine(String editLine) {
287288
switch (argsArray[argIndex]) {
288289
case GOV_NODENAME_ARG:
289290
argsBox.govNodeName = argsArray[argIndex + 1];
290-
argIndex += 2;
291+
argIndex += 1;
291292
break;
292293
case DEP_NODENAME_ARG:
293294
argsBox.dep = argsArray[argIndex + 1];
294-
argIndex += 2;
295+
argIndex += 1;
295296
break;
296297
case EDGE_NAME_ARG:
297298
argsBox.edge = argsArray[argIndex + 1];
298-
argIndex += 2;
299+
argIndex += 1;
299300
break;
300301
case RELN_ARG:
301302
argsBox.reln = argsArray[argIndex + 1];
302-
argIndex += 2;
303+
argIndex += 1;
303304
break;
304305
case NODENAME_ARG:
305306
argsBox.node = argsArray[argIndex + 1];
306-
argIndex += 2;
307+
argIndex += 1;
307308
break;
308309
case NODE_PROTO_ARG:
309310
argsBox.nodeString = argsArray[argIndex + 1];
310-
argIndex += 2;
311+
argIndex += 1;
311312
break;
312313
case WEIGHT_ARG:
313314
argsBox.weight = Double.valueOf(argsArray[argIndex + 1]);
314-
argIndex += 2;
315+
argIndex += 1;
315316
break;
316317
case NAME_ARG:
317318
argsBox.name = argsArray[argIndex + 1];
318-
argIndex += 2;
319+
argIndex += 1;
319320
break;
320321
default:
321322
throw new SsurgeonParseException("Parsing Ssurgeon args: unknown flag " + argsArray[argIndex]);

0 commit comments

Comments
 (0)