File tree 1 file changed +5
-0
lines changed
src/edu/stanford/nlp/trees
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ public class UniversalPOSMapper {
42
42
/** A logger for this class */
43
43
private static final Redwood .RedwoodChannels log = Redwood .channels (UniversalPOSMapper .class );
44
44
45
+ private static final boolean DEBUG = System .getProperty ("UniversalPOSMapper" , null ) != null ;
46
+
45
47
@ SuppressWarnings ("WeakerAccess" )
46
48
public static final String DEFAULT_TSURGEON_FILE = "edu/stanford/nlp/models/upos/ENUniversalPOS.tsurgeon" ;
47
49
@@ -87,6 +89,9 @@ public static void load() {
87
89
newTregex = pattern .pattern () + ": (=target == /^(?:VB)/)" ;
88
90
newTsurgeon = "relabel target AUX" ;
89
91
}
92
+ if (DEBUG ) {
93
+ System .err .println (newTregex + "\n " + newTsurgeon );
94
+ }
90
95
operations .add (new Pair <>(TregexPattern .compile (newTregex ),
91
96
Tsurgeon .parseOperation (newTsurgeon )));
92
97
}
You can’t perform that action at this time.
0 commit comments