Skip to content

Commit 9732f82

Browse files
committed
Add a bit of doc about a particular converter feature
1 parent 26f40ee commit 9732f82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/edu/stanford/nlp/trees/CoordinationTransformer.java

+4
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ private static Tree rearrangeNowThat(Tree t) {
191191
private static final TsurgeonPattern mergeYodaVerbsTsurgeon =
192192
Tsurgeon.parseOperation("[createSubtree VP vbn] [move will >-1 home] [move be >-1 home] [prune willbe]");
193193

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+
*/
194198
private static Tree mergeYodaVerbs(Tree t) {
195199
if (t == null) {
196200
return t;

0 commit comments

Comments
 (0)