Skip to content

Commit 56cd6bb

Browse files
committed
Add a note on why the old INTJ rule was no longer used. Addresses #1370
1 parent 5e0e44a commit 56cd6bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/edu/stanford/nlp/trees/international/pennchinese/ChineseHeadFinder.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public ChineseHeadFinder(TreebankLanguagePack tlp) {
5454
nonTerminalInfo.put("DP", new String[][]{{left, "DT", "DP"}}); // there's one instance of DP adjunction
5555
nonTerminalInfo.put("DVP", new String[][]{{right, "DEV", "DEC"}}); // DVP always has DEV under it
5656
nonTerminalInfo.put("FRAG", new String[][]{{right, "VV", "NN"}, rightExceptPunct}); //FRAG seems only to be used for bits at the beginnings of articles: "Xinwenshe<DATE>" and "(wan)"
57-
nonTerminalInfo.put("INTJ", new String[][]{{right, "INTJ", "IJ", "SP"}});
5857
nonTerminalInfo.put("IP", new String[][]{{left, "VP", "IP"}, rightExceptPunct}); // CDM July 2010 following email from Pi-Chuan changed preference to VP over IP: IP can be -SBJ, -OBJ, or -ADV, and shouldn't be head
5958
nonTerminalInfo.put("LCP", new String[][]{{right, "LC", "LCP"}}); // there's a bit of LCP adjunction
6059
nonTerminalInfo.put("LST", new String[][]{{right, "CD", "PU"}}); // covers all examples
@@ -97,7 +96,9 @@ public ChineseHeadFinder(TreebankLanguagePack tlp) {
9796
// new for CTB9
9897
nonTerminalInfo.put("DFL", new String[][]{rightExceptPunct});
9998
nonTerminalInfo.put("EMO", new String[][]{leftExceptPunct}); // left/right doesn't matter
100-
nonTerminalInfo.put("INC", new String[][]{leftExceptPunct});
99+
nonTerminalInfo.put("INC", new String[][]{leftExceptPunct});
100+
// old version suitable for v5.1 ... does not cover "我的天 哪" for example
101+
// nonTerminalInfo.put("INTJ", new String[][]{{right, "INTJ", "IJ", "SP"}});
101102
nonTerminalInfo.put("INTJ", new String[][]{leftExceptPunct});
102103
nonTerminalInfo.put("OTH", new String[][]{leftExceptPunct});
103104
nonTerminalInfo.put("SKIP", new String[][]{leftExceptPunct});

0 commit comments

Comments
 (0)