Skip to content

Commit 25a9819

Browse files
committed
Update a couple trees to have adverb types instead of ADP. Need to make sure the XPOS tags get updated in the converter when using the PTB corrector
1 parent 464f4c8 commit 25a9819

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/edu/stanford/nlp/trees/treebank/EnglishPTBTreebankCorrector.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,15 @@ private static BufferedReader getBufferedReader(String source) {
11661166

11671167
"") +
11681168

1169+
// for structures such as "over a year", "about a decade", etc
1170+
("NP < (QP <1 IN=bad <2 (DT !$+ __) $+ /^N/)\n" +
1171+
"relabel bad RB\n" +
1172+
"\n") +
1173+
1174+
// for structures such as "just over a decade"
1175+
("NP < (QP <1 (RB < just) <2 IN=bad <3 (DT !$+ __) $+ /^N/)\n" +
1176+
"relabel bad RB\n" +
1177+
"\n") +
11691178

11701179
("@QP < (IN|JJ|RBR|RP=bad < about)\n" +
11711180
"relabel bad RB\n" +

0 commit comments

Comments
 (0)