Skip to content

Commit 7eeca85

Browse files
committed
Make the tsurgeon debug mode noisier
1 parent 15bcfb3 commit 7eeca85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/edu/stanford/nlp/trees/tregex/tsurgeon/Tsurgeon.java

+6
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,14 @@ public static Tree processPatternsOnTree(List<Pair<TregexPattern, TsurgeonPatter
613613
matchedOnTree = true;
614614
t = tsm.evaluate(t,m);
615615
if (t == null) {
616+
if (DEBUG) {
617+
log.info(" Matched, but t == null!");
618+
}
616619
return null;
617620
}
621+
if (DEBUG) {
622+
log.info(" Matched! Update: " + t);
623+
}
618624
m = op.first().matcher(t);
619625
}
620626
} catch (NullPointerException npe) {

0 commit comments

Comments
 (0)