Skip to content

Commit

Permalink
Make the tsurgeon debug mode noisier
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Mar 14, 2024
1 parent 15bcfb3 commit 7eeca85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/edu/stanford/nlp/trees/tregex/tsurgeon/Tsurgeon.java
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,14 @@ public static Tree processPatternsOnTree(List<Pair<TregexPattern, TsurgeonPatter
matchedOnTree = true;
t = tsm.evaluate(t,m);
if (t == null) {
if (DEBUG) {
log.info(" Matched, but t == null!");
}
return null;
}
if (DEBUG) {
log.info(" Matched! Update: " + t);
}
m = op.first().matcher(t);
}
} catch (NullPointerException npe) {
Expand Down

0 comments on commit 7eeca85

Please sign in to comment.