We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f40ee commit 9732f82Copy full SHA for 9732f82
src/edu/stanford/nlp/trees/CoordinationTransformer.java
@@ -191,6 +191,10 @@ private static Tree rearrangeNowThat(Tree t) {
191
private static final TsurgeonPattern mergeYodaVerbsTsurgeon =
192
Tsurgeon.parseOperation("[createSubtree VP vbn] [move will >-1 home] [move be >-1 home] [prune willbe]");
193
194
+ /**
195
+ * Text such as "Also excluded will be ---" should have similar dependencies to "--- also will be excluded".
196
+ * Rearranging the verbs with these tsurgeon makes the headfinder more accurate on that type of sentence.
197
+ */
198
private static Tree mergeYodaVerbs(Tree t) {
199
if (t == null) {
200
return t;
0 commit comments