Repository navigation
Commit d2f804f
Make an adverb of place the predicate of a copula in the UD converter
"He is here" came out with is as the head and here as advmod, and is
as VERB. EWT and GUM make the adverb the head of the clause with be
as cop, as for an adjective or noun predicate: there are 287 adverbs
with a cop in EWT, mostly here, there, out, away, back, in, around and
up. EWT tags be as VERB only in existential "there is".
When a copula has no other predicate, make an ADVP or PRT headed by
an adverb of place or direction the head of the VP or SQ, and the
copula its cop:
He is here here head, is cop
Is the trouble over? over head, Is cop
The answer is a click of the away head, is cop, click obl:npmod
mouse away
He is still there there head, still advmod
Other adverbs after a copula are modifiers, so "the goal is simply to
win" is unchanged. "ago" is left out of the list of adverbs, since in
the PTB "than it was a year ago" is usually an ellipsis of the
predicate. A purpose clause after the adverb, as in "I'm here to
help" or "most are there to make their fans cheer", is advcl, as in
EWT and GUM.
In the PTB's market reports the adverb often comes with a measure
phrase or a degree adverb inside the ADVP, as in "the Dow was down
80.53 points", "was off three pence" or "earnings were down slightly",
where the ADVP's head rule picked the measure or the degree adverb.
Make the adverb the head of such an ADVP, with the measure phrase as
obl:npmod and a degree adverb such as slightly or sharply as advmod.
"far" before another adverb is itself a degree adverb, so "falling far
short of" and "far more" are unchanged, as are other pairs of adverbs,
as in "came back early". A copula followed by a VP is an auxiliary,
so it stays aux in "is further investigating the causes".
The tests with "here" and "over" after a copula now have the adverb
as the head.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FFFrVzJ9BaKtDx4UPVveJx1 parent 9c04f38 commit d2f804f
3 files changed
Lines changed: 136 additions & 21 deletions
File tree
- src/edu/stanford/nlp/trees
- test/src/edu/stanford/nlp/trees
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
191 | | - | |
192 | | - | |
| 195 | + | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
| |||
875 | 879 | | |
876 | 880 | | |
877 | 881 | | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
878 | 885 | | |
879 | 886 | | |
880 | 887 | | |
| |||
1259 | 1266 | | |
1260 | 1267 | | |
1261 | 1268 | | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
1262 | 1272 | | |
1263 | 1273 | | |
1264 | 1274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
305 | 336 | | |
306 | 337 | | |
307 | 338 | | |
| |||
342 | 373 | | |
343 | 374 | | |
344 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
345 | 383 | | |
346 | 384 | | |
347 | 385 | | |
| |||
411 | 449 | | |
412 | 450 | | |
413 | 451 | | |
414 | | - | |
415 | 452 | | |
416 | 453 | | |
417 | 454 | | |
| |||
441 | 478 | | |
442 | 479 | | |
443 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
444 | 492 | | |
445 | 493 | | |
446 | 494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
644 | 659 | | |
645 | | - | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
646 | 703 | | |
647 | 704 | | |
648 | 705 | | |
| |||
670 | 727 | | |
671 | 728 | | |
672 | 729 | | |
673 | | - | |
674 | | - | |
675 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
676 | 733 | | |
677 | 734 | | |
678 | 735 | | |
679 | 736 | | |
680 | | - | |
| 737 | + | |
681 | 738 | | |
682 | 739 | | |
683 | 740 | | |
684 | | - | |
685 | | - | |
| 741 | + | |
| 742 | + | |
686 | 743 | | |
687 | 744 | | |
688 | 745 | | |
| |||
880 | 937 | | |
881 | 938 | | |
882 | 939 | | |
883 | | - | |
| 940 | + | |
884 | 941 | | |
885 | | - | |
886 | | - | |
| 942 | + | |
| 943 | + | |
887 | 944 | | |
888 | 945 | | |
889 | 946 | | |
| |||
2405 | 2462 | | |
2406 | 2463 | | |
2407 | 2464 | | |
2408 | | - | |
| 2465 | + | |
2409 | 2466 | | |
2410 | 2467 | | |
2411 | 2468 | | |
2412 | | - | |
2413 | | - | |
| 2469 | + | |
| 2470 | + | |
2414 | 2471 | | |
2415 | 2472 | | |
2416 | 2473 | | |
| |||
2509 | 2566 | | |
2510 | 2567 | | |
2511 | 2568 | | |
2512 | | - | |
| 2569 | + | |
2513 | 2570 | | |
2514 | 2571 | | |
2515 | 2572 | | |
2516 | | - | |
2517 | | - | |
2518 | | - | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
2519 | 2576 | | |
2520 | 2577 | | |
2521 | 2578 | | |
| |||
0 commit comments