Skip to content

Commit

Permalink
Add a bit of doc about a particular converter feature
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Nov 12, 2024
1 parent 26f40ee commit 9732f82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/edu/stanford/nlp/trees/CoordinationTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ private static Tree rearrangeNowThat(Tree t) {
private static final TsurgeonPattern mergeYodaVerbsTsurgeon =
Tsurgeon.parseOperation("[createSubtree VP vbn] [move will >-1 home] [move be >-1 home] [prune willbe]");

/**
* Text such as "Also excluded will be ---" should have similar dependencies to "--- also will be excluded".
* Rearranging the verbs with these tsurgeon makes the headfinder more accurate on that type of sentence.
*/
private static Tree mergeYodaVerbs(Tree t) {
if (t == null) {
return t;
Expand Down

0 comments on commit 9732f82

Please sign in to comment.