Skip to content

Commit

Permalink
solves #72, minor corrections #66
Browse files Browse the repository at this point in the history
  • Loading branch information
leoalenc committed Feb 10, 2022
1 parent 4f0aa7e commit cd62d52
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lkb/my-script
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
(lkb-pathname (parent-directory) "random-sample-50-entries.tdl")
(lkb-pathname (parent-directory) "random-sample-156-entries.tdl")
(lkb-pathname (parent-directory) "random-sample-206-entries.tdl")
(lkb-pathname (parent-directory) "sample-1647-entries.tdl")
(lkb-pathname (parent-directory) "random-sample-205-entries.tdl")
;(lkb-pathname (parent-directory) "sample-1647-entries.tdl")
(lkb-pathname (parent-directory) "new-ditrans.tdl")
(lkb-pathname (parent-directory) "my-adjectives.tdl")
))
Expand Down
17 changes: 17 additions & 0 deletions my-nouns.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,20 @@ movimentação := fem-noun-lex &
[ STEM < "movimentação" >,
SYNSEM.LKEYS.KEYREL.PRED "_movimentação_n_rel" ].

briga := fem-noun-lex &
[ STEM < "briga" >,
SYNSEM.LKEYS.KEYREL.PRED "_briga_n_rel" ].

janela := fem-noun-lex &
[ STEM < "janela" >,
SYNSEM.LKEYS.KEYREL.PRED "_janela_n_rel" ].

quintal := masc-noun-lex &
[ STEM < "quintal" >,
SYNSEM.LKEYS.KEYREL.PRED "_quintal_n_rel" ].

sertão := masc-noun-lex &
[ STEM < "sertão" >,
SYNSEM.LKEYS.KEYREL.PRED "_sertão_n_rel" ].


2 changes: 1 addition & 1 deletion out.stats
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TN=128
TP=507
TP=510
FP=11
FN=10
7 changes: 7 additions & 0 deletions out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -658,3 +658,10 @@
;;; Total CPU time: 44906 msecs
;;; Mean edges: 323.85
;;; Mean parses: 1.66
1 os estudantes partiram para o sertão 2 298
2 a artista partiu para a briga 1 196
3 a janela dava para o quintal 1 362

;;; Total CPU time: 256 msecs
;;; Mean edges: 285.33
;;; Mean parses: 1.33
4 changes: 2 additions & 2 deletions random-sample-156-entries.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ assentar_1 := nonrefl-ine-obj-verb-lex & ; BOR
"""
A defesa desta estratégia de «guerra total» no plenário das Nações Unidas não assenta exclusivamente no impulso que a questão timorense ganhou com a atribuição do Nobel a Horta e a Belo -- Ramos Horta já tinha sugerido esse passo num memorando que fez chegar ao Palácio das Necessidades meses antes de se conhecer a escolha de Oslo --, mas o certo é que o Nobel da Paz timorense constitui um reforço importante.
""".

; pronominal verb with the reading "limitar-se", "resumir-se" etc. (FER, MIC, BOR, AUR, HOU, PRI)
restringir_1 := trans-verb-lex & ; ERROR:refl-dat-obj-verb-lex
[ STEM < "restringir" >,
SYNSEM.LKEYS.KEYREL.PRED "_restringir_v_1_rel" ]
Expand Down Expand Up @@ -1128,7 +1128,7 @@ envolver_3 := trans-verb-lex & ; MIC
"""
Além do contrato com a Servaz, há outros do mesmo tipo, envolvendo mais empreiteiras.
""".
; passive "se"
; annotation error: passive "se"
pavimentar_1 := refl-int-verb-lex & ; ERROR:trans-verb-lex
[ STEM < "pavimentar" >,
SYNSEM.LKEYS.KEYREL.PRED "_pavimentar_v_1_rel" ]
Expand Down
3 changes: 2 additions & 1 deletion random-sample-205-entries.tdl
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,8 @@ redigir_1 := trans-verb-lex & ; AUL
A agência Nova China informou que para redigir este dicionário de 34 470 entradas em língua chinesa, foi necessário o trabalho de 300 especialistas durante três anos.
""".
; error of valence extraction script (expansion of null subject frame leads to incorrect results with impersonal verbs)
tratar_1 := refl-gen-obj-verb-lex & ; ERROR: verb with expletive null subject (TODO)
; impersonal verb with expletive null subject (TODO)
tratar_1 := refl-gen-obj-verb-lex & ; ERROR
[ STEM < "tratar" >,
SYNSEM.LKEYS.KEYREL.PRED "_tratar_v_1_rel" ]
"""
Expand Down
3 changes: 3 additions & 0 deletions results.txt
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,9 @@ True positives
654 o jogador integrou-se em as movimentações 1 115
655 eles têm contribuído para que o artista não caia em o esquecimento 1 2073
656 ela responde por o pagamento 1 118
1 os estudantes partiram para o sertão 2 298
2 a artista partiu para a briga 1 196
3 a janela dava para o quintal 1 362
False positives
99 *os cachorros ladrarem 1 54
100 *o cachorro ladrar 1 93
Expand Down

0 comments on commit cd62d52

Please sign in to comment.