Skip to content

Commit

Permalink
solves #44
Browse files Browse the repository at this point in the history
  • Loading branch information
leoalenc committed Oct 6, 2021
1 parent 0352e10 commit 56548a0
Show file tree
Hide file tree
Showing 6 changed files with 506 additions and 478 deletions.
9 changes: 0 additions & 9 deletions lexicon.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -672,9 +672,6 @@ desculpar_2 := que-eval-verb-lex &
[ STEM < "desculpar" >,
SYNSEM.LKEYS.KEYREL.PRED "_desculpar_v_2_rel" ].

detestar_3 := que-eval-verb-lex &
[ STEM < "detestar" >,
SYNSEM.LKEYS.KEYREL.PRED "_detestar_v_3_rel" ].

gostar := que-eval-verb-lex &
[ STEM < "gostar" >,
Expand Down Expand Up @@ -1037,9 +1034,3 @@ para_20que := comps6-complementizer-lex-item &
em_20que := comps7-complementizer-lex-item &
[ STEM < "em",
"que" > ].

que_4 := comps8-complementizer-lex-item &
[ STEM < "que" > ].

que_5 := comps9-complementizer-lex-item &
[ STEM < "que" > ].
56 changes: 40 additions & 16 deletions my-portuguese.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -344,21 +344,22 @@ que-de-compl-subj-raise-aux-with-pred := compl-subj-raise-aux-with-pred & [ ARG-
em-compl-subj-raise-aux-with-pred := compl-subj-raise-aux-with-pred & [ ARG-ST.REST.FIRST.LOCAL.CAT.HEAD.COMP-FORM em_comp ].

; redefinition of types generated by the grammar matrix

comps1-complementizer-lex-item := complementizer-lex-item & basic-non-wh-word-lex &
[ SYNSEM.LOCAL [ CAT [ MC na-or--,
HEAD.FORM finite,
VAL.COMPS.FIRST.LOCAL.CAT [ MC -,
HEAD.FORM finite ] ],
CONT.HOOK.INDEX.SF prop ] ].

comps8-complementizer-lex-item := complementizer-lex-item & basic-non-wh-word-lex &
[ SYNSEM.LOCAL [ CAT [ MC na-or--,
HEAD.FORM finite,
VAL.COMPS.FIRST.LOCAL [ CONT.HOOK.INDEX.E.MOOD indicative,
CAT [ MC -,
HEAD.FORM finite ] ] ],
CONT.HOOK.INDEX.SF prop ] ].
; TODO 05.10.21: use the types generated by the grammar matrix from choices file 178

;comps1-complementizer-lex-item := complementizer-lex-item & basic-non-wh-word-lex &
; [ SYNSEM.LOCAL [ CAT [ MC na-or--,
; HEAD.FORM finite,
; VAL.COMPS.FIRST.LOCAL.CAT [ MC -,
; HEAD.FORM finite ] ],
; CONT.HOOK.INDEX.SF prop ] ].

;comps8-complementizer-lex-item := complementizer-lex-item & basic-non-wh-word-lex &
; [ SYNSEM.LOCAL [ CAT [ MC na-or--,
; HEAD.FORM finite,
; VAL.COMPS.FIRST.LOCAL [ CONT.HOOK.INDEX.E.MOOD indicative,
; CAT [ MC -,
; HEAD.FORM finite ] ] ],
; CONT.HOOK.INDEX.SF prop ] ].

; complementizers heading an infinitival complement of a subject raising verb (auxiliary) or an object control verb

Expand Down Expand Up @@ -496,4 +497,27 @@ ditrans-second-arg-dat-control-verb-lex := main-verb-lex & noninh-refl-verb-lex

inf-ditrans-second-arg-dat-control-verb-lex := ditrans-second-arg-dat-control-verb-lex & [ ARG-ST.REST.REST.FIRST.LOCAL.CAT.HEAD.FORM infinitive].

para-inf-ditrans-second-arg-dat-control-verb-lex := inf-ditrans-second-arg-dat-control-verb-lex & [ ARG-ST.REST.REST.FIRST.LOCAL.CAT.HEAD.COMP-FORM para_comp ].
para-inf-ditrans-second-arg-dat-control-verb-lex := inf-ditrans-second-arg-dat-control-verb-lex & [ ARG-ST.REST.REST.FIRST.LOCAL.CAT.HEAD.COMP-FORM para_comp ].

;que-cl-verb-lex := fin-cl-verb-lex & clausal-nom-verb-lex & clausal-second-arg-trans-lex-item &
; [ SYNSEM [ LOCAL.CAT.VAL.COMPS < [ LOCAL [ CAT [ HEAD comp ,
; WH.BOOL - ],
; CONT.HOOK.INDEX.SF prop ] ] >,
; NON-LOCAL.QUE.LIST < > ] ].

; TODO 05.10.21: use the types generated by the grammar matrix from choices file 178

;que-cl-verb-lex := fin-cl-verb-lex & clausal-nom-verb-lex & clausal-second-arg-trans-lex-item &
; [ SYNSEM [ LOCAL.CAT.VAL.COMPS < [ LOCAL [ CAT [ HEAD comp &
; [ FORM finite ],
; WH.BOOL - ],
; CONT.HOOK.INDEX.SF prop ] ] >,
; NON-LOCAL.QUE.LIST < > ] ].

; This conflicts with the specifications of the verb types, where the CP complement form is the form of the complementizer
; fin-cl-verb-lex := noninh-refl-verb-lex & [ SYNSEM.LOCAL.CAT.VAL.COMPS.FIRST.LOCAL.CAT.HEAD.FORM finite].


ind-cl-verb-lex := que-cl-verb-lex & [ SYNSEM.LOCAL.CAT.VAL.COMPS.FIRST.LOCAL.CONT.HOOK.INDEX.E.MOOD indicative].

subj-cl-verb-lex := fin-cl-verb-lex & [ SYNSEM.LOCAL.CAT.VAL.COMPS.FIRST.LOCAL.CONT.HOOK.INDEX.E.MOOD subjunctive].
8 changes: 4 additions & 4 deletions out.stats
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TN=111
TP=418
FP=9
FN=13
TN=119
TP=421
FP=7
FN=15
Loading

0 comments on commit 56548a0

Please sign in to comment.