Commit a1277c1
Fix constructions that never won a parse
A usage census over 10,000 parsed news sentences found nonterminals
that never appeared in a winning tree. Four of them were meant to fire
on ordinary prose and lost to a wrong analysis or could not match:
- "sem:ao" does not exist in BÍN ('sem' is st or fs), so SemStendur
("sem stendur"), LoSem ("sem jöfnustu"), "svo sem" and one "sem
sagt" could never match. Use "sem:st".
- HjSögnLhNtFrumlag's first alternative ("Nú fer hælisleitendum
fækkandi") lacked the dative subject, so the sentence was parsed
with an impersonal verb instead.
- HjSögnVantaSkorta ("Okkur þótti vanta mýkt") lost on score to a
reading of 'vanta' as a noun; give it a bonus.
- "undir eins" was read as 'undir' + the comparison "eins og". Make
it a fixed phrase in Phrases.conf.
On the 1000-sentence baseline 5 trees change: 3 score ties and 2
improvements (e.g. "vel viðráðanleg sem stendur" no longer becomes a
relative clause), none lost.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent b321356 commit a1277c1
3 files changed
Lines changed: 41 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3375 | 3375 | | |
3376 | 3376 | | |
3377 | 3377 | | |
3378 | | - | |
| 3378 | + | |
3379 | 3379 | | |
3380 | 3380 | | |
3381 | 3381 | | |
| |||
3426 | 3426 | | |
3427 | 3427 | | |
3428 | 3428 | | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
3429 | 3432 | | |
3430 | 3433 | | |
3431 | 3434 | | |
| |||
5750 | 5753 | | |
5751 | 5754 | | |
5752 | 5755 | | |
5753 | | - | |
| 5756 | + | |
5754 | 5757 | | |
5755 | 5758 | | |
5756 | 5759 | | |
| |||
6491 | 6494 | | |
6492 | 6495 | | |
6493 | 6496 | | |
6494 | | - | |
6495 | | - | |
6496 | | - | |
| 6497 | + | |
| 6498 | + | |
| 6499 | + | |
6497 | 6500 | | |
6498 | 6501 | | |
6499 | 6502 | | |
| |||
6545 | 6548 | | |
6546 | 6549 | | |
6547 | 6550 | | |
6548 | | - | |
| 6551 | + | |
6549 | 6552 | | |
6550 | 6553 | | |
6551 | 6554 | | |
6552 | 6555 | | |
6553 | | - | |
| 6556 | + | |
6554 | 6557 | | |
6555 | 6558 | | |
6556 | 6559 | | |
| |||
6626 | 6629 | | |
6627 | 6630 | | |
6628 | 6631 | | |
6629 | | - | |
| 6632 | + | |
6630 | 6633 | | |
6631 | 6634 | | |
6632 | 6635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
| 1385 | + | |
1385 | 1386 | | |
1386 | 1387 | | |
1387 | 1388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2780 | 2780 | | |
2781 | 2781 | | |
2782 | 2782 | | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
2783 | 2811 | | |
2784 | 2812 | | |
2785 | 2813 | | |
| |||
2849 | 2877 | | |
2850 | 2878 | | |
2851 | 2879 | | |
| 2880 | + | |
2852 | 2881 | | |
0 commit comments