Debian Codegraph @

SYNTAX_STATUS.md

raw symbols SCIP
1 # PLAN
2
3 This branch changes the pipeline to insert the syntax CG right after
4 disam and capstag (before tagger), which gives us syntax @-tags on all
5 lexical units. Then, after bidix and lexical selection, the new step
6 refsyn.t1x removes the @-tags, but also attends to the last seen @subj
7 and puts it in the ref-field (of the following words). Then t1x reads
8 the ref-field and uses that to compute the gender/number of pp's
9 created from passives.
10
11 - See `refsyn.t1x` which stores `cur_subj` and places it in the ref
12 field (as well as remove syntactic function tags so tNx doesn't have
13 to deal with them – using syntax tags in transfer will have to be a
14 later extension)
15
16 We wait with apertium-anaphora for now. What we want is to put the
17 governed @subj – which is typically the *nearest* – into <clip
18 side="ref"> for transfer to use. It's syntactic, not anaphoric.
19
20 ## Pretty much done:
21
22 - lrx needs to deal with @-tags (typically does, but some rules might
23 end in <aa>)
24
25 - lsx needs to deal with @-tags
26 - Explicit <s n="aa"/><d/> in lsx needs to be turned into <par n="d"/>
27 (or <par n="d:"/>) which can skip the function tags; try
28 `xmllint --xpath '//l/s[@n="aa"]/../../l/d/../..' apertium-nno-nob.nob-nno.lsx`
29
30 - passive gender/number now uses the `ref` field, via refsyn.t1x
31
32 - In some cases, we need to use a subject that's to the right,
33 refsyn.t1x needs some rules for that
34
35 - Syntax CG now before tagger, using syntax for disambiguation.
36
37 - Most lrx/lsx regressions fixed.
38
39 - Use the subj→ref method for participles as well as passives. The old
40 method was to "disambiguate" participles based on preceding subject,
41 but that fails when subject changes gender in bidix, since we
42 disambiguate based on nob gender. OTOH it's the target language
43 subject that gets stored in the `ref` field, which *will* have the
44 right gender. T1X now uses the `ref` field if it's set, falling back
45 to the input gender/number (given by the old method) if unset.
46
47 - Subjects of relative clauses and subclauses tagged as @xubj
48 - de<pl><@subj> nevner mannen<mf><@xubj> i 50-åra som …
49 - et antall<sg><@subj> av deres krigere<pl><@xubj> …
50
51 - Regular (non-pp) adjectives
52 - restricted to the cases where the subject is plural, or it changes
53 in translation between nt and non-nt genders
54
55 ## Main work remaining:
56
57 - Remaining regressions in passive genders (missing refsyn.t1x
58 patterns, bad syntax disambiguation?)
59
60 - We should not remove marked plurals! Our tagging doesn't show if
61 e.g. utelatt<adj><pp><pl> was the ambiguous form "utelatt" or the
62 plural-only "utelatte", so T1X might turn that into mf.sg.ind to
63 match the @subj, but if it actually was unambiguously plural in nob
64 we should keep it that way (e.g. when adj is used as noun in
65 "rapportering av utelatte").
66
67 - Sometimes the subject is a whole clause – should give nt:
68 - [At disse<pl> ble solgt] er fint<nt!>
69 - [Hva de mistenkte<pl> skal ha gjort], er ikke kjent<nt!>.
70 May require "outer" ref, flip on clause boundary.
71 But we can't always trust that som+comma ends the clause:
72 - Han stadfestar at<nt> alle tenestemennene<pl> som avfyrte skot, no
73 er avhøyrde<pl>
74
75 - Coordination should give plural
76 - To politivakter og en vakt fra et privat vaktselskap ble drept<pl!>
77 - Et fransk kjærestepar sier til VG at det var de som fant norske Maren Ueland og danske Louisa Vesterager Jespersen drept i Marokko mandag morgen.
78 But sometimes hard to know if it's the same person (sg) or different (pl):
79 - Programleder og tidligere gjengleder skutt og drept i København.
80
81 - Missing relative pronouns are difficult:
82 - Jeg er her på grunn av beslutninger<pl> tatt<pl> på europeiske møter
83 - Brasil<nt> er hardt truffet med vel 55.000 dødsfall<pl> relatert<pl> til pandemien
84 - … stemte med mannens fingeravtrykk<nt> funnet<nt> hos …
85 Difficult, since e.g.: ble det ved flere anledninger<pl> tatt<nt> opp i Stortinget
86 - Maybe we can use ngram frequencies f(ta beslutninger) >>> f(ta anledninger)
87 - Current solution: We treat sequences `n.ind pp.@o-pred` as
88 agreeing. So a participle tagged as object predicate will agree in
89 this manner, but this fails in e.g. «med dødsfall relatert til»
90 where «dødsfall» is tagged `@←p-utfyll` and so «relatert» is just
91 tagged `@adv` (maybe syn.rlx could have an `@a-pred`, but this is
92 in general a difficult attachment problem)
93
94 - adj.sg.nt.@adv should be adv_movable
95 - domineres sterkt → er sterkt dominert
96
97 - Crossing subject are difficult:
98
99 1. Samtidig skal vi ha respekt for den politiske plattformen<xubj> som de fire partiene<subj> fremforhandlet på Granavollen, og som ble godkjent<plattform> av partienes organer
100 2. Antallet<subj> mennesker<xubj> som døde<menneske> i etterkant, var kraftig underrapportert<antall>.
101
102 We could use commas as a signal to switch to a previous subject, which would fix the above, but
103 but commas after "non-optional" relatives should *not* lead to a switch:
104
105 3. Han<subj> opplyser at alle flyvinger<xubj> som var planlagt<flyvning> tirsdag, er innstilt<flyvning>.
106 4. Regjeringa<subj> stadfestar no at lisenskontoret<subj> i Mo i Rana, som har<lisenskontoret> 106 arbeidsplassar, legges<lisenskontoret> ned.
107 5. Tidligere i februar ble det<subj> kjent at seks politifolk<xubj> som jobbet for å avdekke narkotikakriminalitet, var pågrepet<folk> for selv å ha smuglet narkotika.
108
109 (Though in those cases, we have «at.cnjcoo.clb» on which to empty prev-subj.)
110 But it's hard to consistently tag these commas as clb; e.g. below we
111 have an "optional" relative sentence where we do want to switch subjects
112 on the comma:
113
114 6. Den ene såkalte svarte boksen<subj> fra flyet<xubj> som styrtet<fly> i Etiopia, er funnet<boks>, melder etiopiske medier.
115
116 (Note: In example 1. we have xubj-subj-ref:subj-ref:xubj, whereas
117 in 6. we have subj-xubj-ref:xubj-ref:subj, ie. we can't always
118 expect the relative subject to be the inner one.)
119
120 Possible idea: split @clb-tag into clause-with-subject vs clause-without-subject (ellipsis)?
121
122 - Uncommon, but referent may be far to the right:
123 - Desto lenger ut i kampen vi<pl> er, desto mer sliten<sg> blir muskulaturen<sg>.
124 - Mange har reist langveisfra, spesielt populær<mf> kan det virke som om Foyle<mf> er i Australia.