• Aucun résultat trouvé

Evaluating syntactic lexica through their integration in the FRMG

N/A
N/A
Protected

Academic year: 2022

Partager "Evaluating syntactic lexica through their integration in the FRMG"

Copied!
21
0
0

Texte intégral

(1)

INRIA

Evaluating syntactic lexica

through their integration in the FRMG parser

Elsa Tolone, Éric de La Clergerie, Benoît Sagot

LIGM, Université Paris-Est, France & FaMAF, Universidad Nacional de Córdoba, Argentine INRIA Paris-Rocquencourt

http://alpage.inria.fr

Colloque Lexique et grammaire 2011 Nicosie, Chypre, 5-8 Octobre 2011

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 1 / 19

(2)

INRIA

Deep parsing with FRMG (and L EFFF )

de

quoi

fait

-il

prendre

conscience

à

Marie

? de:prep:6

_:S:28

_:_:lexical faire:v:282

conscience:ncpred:lexical

cln:cln:lexical

prendre:v:278

_PERSON_m:np:73 à:prep:lexical

quoi?:pri:77

subject N2

S2 preparg

void causative_prep

S

ncpred

subject

de quoi fait-il prendre conscience à Marie ?

To be tried athttp://alpage.inria.fr/parserdemo

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 2 / 19

(3)

INRIA

Evaluating lexica ?

FRMGdepends onLEFFFsyntactic lexicon (Sagot), and largely co-developped with it, but

can we useFRMGwith other lexica ? is it easy to plug a new lexicon ?

can we then run fine-grained evaluations of syntactic lexica ? can we use feedback information to improve a lexicon ? We tried to answer these questions, with 3 new lexica:

LGLEX,DICOVALENCE, andNEWLEFFF

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 3 / 19

(4)

INRIA

FRMG: a French metagrammar

A large-coverage Metagramar for French

abstract descriptive layer, constraint-based, modularity, inheritance generation of a TAG/TIG grammar

extended domain of locality, capture of subcategorization frames withfactorizedtrees

I current version: 290 trees (and only 32 verbal trees)

I one tree≡many ordinary TAG trees

I ⇒one verbal tree stands for many subcat frames, arg positions, realizations, . . .

S

|

↓NP0 cln ↓S

VP V

3v

##

ordre libre

↓NP1 ↓PP2

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 4 / 19

(5)

INRIA

Coupling FRMG with a lexicon: Hypertags

FRMG

hypertag #286

arg0 arg0

extracted - fun fun0

kind kind0 subj |nosubj

pcas -

real real0 -|CS|N2|PP|S|cln|prel|pri

arg1 arg1

extracted - fun fun1

kind kind1 - |acomp|obj|prepacomp|prepobj

pcas pcas1 +| - |apres|à|avec|de|par |. . . real real1 -|CS|N|N2|PP|S|V|adj|cla|. . .

arg2 arg2

extracted - fun fun2

kind kind2- |prepacomp| prepobj |prepscomp

| prepvcomp | scomp| vcomp | wh- comp

pcas pcas2 -|+|apres|à |...

real real2 -|CS|N|N2|PP|S|...

cat v

diathesis active refl refl ctrsubj ctr

imp imp

LEFFF

hypertag «promettre»

arg0

fun suj kind subj|- pcas -

arg1

fun obj

kind obj|scomp|- pcas -

arg2

fun objà kind prepobj|- pcas à|-

refl - ctrsubj suj

imp -

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 5 / 19

(6)

INRIA

Coupling FRMG with a lexicon: Hypertags

FRMG

hypertag #286

arg0 arg0

extracted - fun fun0

kind kind0 subj |nosubj

pcas -

real real0 -|CS|N2|PP|S|cln|prel|pri

arg1 arg1

extracted - fun fun1

kind kind1 - |acomp|obj|prepacomp|prepobj

pcas pcas1 +| - |apres|à|avec|de|par |. . . real real1 -|CS|N|N2|PP|S|V|adj|cla|. . .

arg2 arg2

extracted - fun fun2

kind kind2- |prepacomp| prepobj |prepscomp

| prepvcomp | scomp| vcomp | wh- comp

pcas pcas2 -|+|apres|à |...

real real2 -|CS|N|N2|PP|S|...

cat v

diathesis active refl refl ctrsubj ctr

imp imp

LEFFF

hypertag «promettre»

arg0

fun suj kind subj|- pcas -

arg1

fun obj

kind obj|scomp|- pcas -

arg2

fun objà kind prepobj|- pcas à|-

refl - ctrsubj suj

imp -

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 5 / 19

(7)

INRIA

Coupling FRMG with a lexicon: Hypertags

FRMG

hypertag #286

arg0 arg0

extracted - fun fun0 suj

kind kind0 subj|nosubj

pcas -

real real0 -|CS|N2|PP|S|cln|prel|pri

arg1 arg1

extracted - fun fun1 obj

kind kind1 - |acomp| obj |prepacomp|prepobj

pcas pcas1 +| - |apres|avec|de|par|. . . real real1 -|CS|N|N2|PP|S|V|adj|cla|. . .

arg2 arg2

extracted - fun fun2 objà

kind kind2 - |prepacomp | prepobj | prep-

scomp|prepvcomp|scomp|vcomp

|whcomp

pcas pcas2 - |+|apres| à |...

real real2 -|CS|N|N2|PP|S|...

cat v

diathesis active refl refl - ctrsubj ctr suj imp imp -

LEFFF

hypertag «promettre»

arg0

fun suj kind subj|- pcas -

arg1

fun obj

kind obj|scomp|- pcas -

arg2

fun objà kind prepobj|- pcas à|-

refl - ctrsubj suj

imp -

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 5 / 19

(8)

INRIA

Alexina and Lefff (Sagot)

ALEXINAis a lexical formalism

with anintensionallevel for lemma

and the generation of anextensionallevel for forms

the descriptions use a set of primitive features, and macros

LEFFFis a wide-coverage morphosyntactic and syntactic lexicon for French, covering all categories

LEFFFis partially factorized:

one entry may cover several meanings and several subcat frames

⇒5,736 entries for 5,450 distinct ones (intensional level)

Freely available athttp://gforge.inria.fr/projects/alexina/

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 6 / 19

(9)

INRIA

Lefff example: promettre

Intensional level

p r o m e t t r e v55 100;Lemma ; v ;

<Suj : c l n|scompl|s i n f|sn ,

Obj : ( c l a|de−s i n f|scompl|sn ) , Objà : ( c l d|à−sn ) >;

@CtrlSujObj , c a t =v ;

%a c t i f ,% p a s s i f ,%ppp_employé_comme_adj,% p a s s i f _ i m p e r s o n n e l ,%

p a s s i f Extensional level promet 100 v

[ pred= " promettre_____1<Suj : c l n|scompl|s i n f|sn , Obj : ( c l a|de−s i n f|scompl|sn ) , Objà : ( c l d|à−sn ) > " ,

@CtrlSujObj , @pers , c a t =v , @P3s ] A macro

@CtrlSujObl = [ c t r s u b j = s u j ] ;

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 7 / 19

(10)

INRIA

LgLex

Resulting from the conversion of LADL tables

1 first, into LGlex format (ConstantandTolone)

2 then, into alexina format (SagotandTolone) Wide-coverage lexicon

kind #tables #entries #distinct entries

verbs 67 13,867 5,738

pred. nouns 78 12,696 8,531

Fine-grained: many entries for some verbs 53 entries fortenir(LEFFF: 6 entries)

Some features can’t be represented inALEXINAand/or exploited inFRMG

for instance: added determiner for predicative nouns inFRMG

missing: semantic restrictions

Freely available athttp://infolingu.univ-mlv.fr

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 8 / 19

(11)

INRIA

Dicovalence

Developed byMertensandvan den Eynde based on pronominal approach (Benveniste) fine grained: one entry for one meaning small coverage

3,700 verbs for 8,000 entries

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 9 / 19

(12)

INRIA

New Lefff

Evolution ofLEFFFtowards a more semantic lexicon finer-grained: one meaning per entry

automatic fusion ofLEFFFandDICOVALENCE, plus manual validation of 505 verbs (986 entries):

I the 100 most frequent lemmas

I thedubious lemmas: more output entries than the sum of corresponding LEFFFandDICOVALENCEentries

still a wide-coverage lexicon 7,933 verbs, for 12,613 entries

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 10 / 19

(13)

INRIA

The lexica at a glance

lexica cat. #entries #verbs ratio

LEFFF v 5,736 5,450 1.06

LGLEX v 13,867 5,738 2.41

pnoun 12,696 8,531 1.48 DICOVALENCE v 8,000 3,700 2.16

NEWLEFFF v 12,613 7,933 1.58

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 11 / 19

(14)

INRIA

EASy/Passage evaluation campaign

French parsing evaluation campaigns organized within EASy and Passage actions.

We use the EASy reference corpus as benchmark

around 4K sentences, manually annotated (but with errors !) various styles: journalistic, literacy, medical, mail, oral, questions constituency and dependency based format (shallow level)

I 6 kinds ofchunks: GN, NV, GA, GR, GP, PV

I 14 kinds ofrelations: SUJ-V, AUX-V, COD-V, ATB-SO , CPL-V, MOD-V, MOD-N, MOD-A, MOD-R, MOD-P, COMP, COORD, APPOS, JUXT

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 12 / 19

(15)

INRIA

Overall results

Setting:

each sentence segmented withSXPIPE, no prior tagging, use of a lexicon

FRMGreturns either

I full parses (possibly by relaxing some agreement constraints)

I sequences of partial parses, covering the sentence

I nothing in case of timeout (100s)

whenever possible,FRMGreturns a shared dependency forest of all possibilities

then heuristic-based disambiguisation and conversion to Passage format

Lexicon Coverage Groups Relations Time Timeout

# % % % s %

LEFFF 3,556 76.08 89.21 66.36 0.30 0.00

NEWLEFFF 3,495 74.81 88.65 65.41 0.43 0.03

LGLEX 3,437 73.60 87.97 63.03 0.84 0.03

DICOVALENCE 2,773 59.78 86.98 61.91 0.42 0.00

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 13 / 19

(16)

INRIA

Analysis per verbal relation

SUJ-V AUX-V COD-V CPL-V ATB-S

0 20 40 60 80 100

79

.3 91

.6

72 .5

62 .4

66 .5 78

.8 91

.2

72 .2

62 .6

59 .5 77

.8 89

.3

66 .5

59 .5

45 .8 76

.1 86

.7

65 .5

61 .6

8.7

verbal relations

f-mesure

lefff NewLefff lglex dv

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 14 / 19

(17)

INRIA

Bonus: experiments on French TreeBank

New: evaluation on CONLL dependency version of FTB richer set of verbal dependencies, but still shallow level

1 de de P P 5 de_obj

2 quoi quoi? PRO PROWH 1 obj

3 fait faire V V 5 aux_caus

4 -il -il CL CLS 5 suj

5 prendre prendre V V 0 root

6 conscience conscience N NC 5 obj

7 à à P P 5 mod

8 Marie marie N NPP 7 obj

9 ? ? PONCT PONCT 5 ponct

Lexicon Coverage (%) LAS (%) Time (s) Timeout (%)

LEFFF 88.29 82.44 0.62 0.02

NEWLEFFF 86.96 81.57 0.80 0.02

LGLEX 84.80 78.94 1.62 0.08

MST(stat parsing) - 88.2 - -

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 15 / 19

(18)

INRIA

Analysis per CONLL verbal relation

Recall

aff ato aux_causats

aux_pass aux_tps

de_obj

dep

mod obj p_obj root suj

a_obj

Leff lglex NewLefff

Precision

aff ato aux_causats

aux_pass aux_tps

de_obj

dep

mod obj p_obj root suj

a_obj

Lefff lglex NewLefff

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 16 / 19

(19)

INRIA

Error mining

Original motivation: find lexical entries that are incorrect or incomplete through full parse failures:

a form is suspect if occurring more often than expected in failed sentences, in co-occurrence with non-suspect forms

;fix-point iterative algorithm, close to EM (Expectation-Maximization) and return the best sentences where a form is the main suspect

⇒WEB-based interface to browse suspects, lexical info, and sentences May be used for any lexica, but can also be adapted for contrasting lexica

a verb is suspect for lexicon L if occurring more often than expected in failed sentences that succeed forLEFFF, in co-occurrence with non-suspect verbs.

Tried on a 100Ksent. toy corpus (wikipedia, wikisource, europarl, AFP news) but could be tried on CPC (100Mwords) or even bigger (700Mwords)

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 17 / 19

(20)

INRIA

Some suspects (for L G L EX )

A first typology of errors on the first 15th suspects forLGLEX: missing entries in the right table

I réaffirmer(28s),réélire(10),se réimplanter(5),mixer(7)

Mixépar Jimi Hazel , assisté de Bruce Calder , enregistré chez Jimi à l’ « Electric Lady Studios » à New York

existing entries, but missing codes

I susciter(41; 36DT & 38R),recruter(14; 38R),délocaliser(9; 38L),zapper(4;

35L: N0 V Loc N1 source Loc N2 dest)

I Elle a également " déploré " la mémoire de " plus en plus sélective " de la jeune femme , " quizappeles détails qui font désordre "

mandatory args (forLGLEX), but missing in the sentences

kidnapper(12; 36DT N0 V N1 Prep N2) : Les deux Italiens ont été kidnappésle 18 décembre

misc. situations

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 18 / 19

(21)

INRIA

Conclusion

Relatively easy to plug new lexica intoFRMG

Rather good results with the tried lexica, even if lower than withLEFFF

(better thanFRMG+LEFFFin 2007 Passage campaign) Room for needed and normal co-adaptationFRMG-lexicon

Coverage Groups Relations Time Timeout

Run1 64.60 83.99 57.02 3.82 0.31

Run6 73.60 87.97 63.03 0.84 0.03

Evolutions:

completing lexica and/or merging information (error mining, evaluation) better factorization of lexical entries inLGLEX, delaying use of more semantic entries at disambiguisation time

(alternatively) pre-parsingsuppertaggingorhypertaggingphases to prune search space

assign probabilities to entries and/or frames

enrichFRMGwith some new features, to take into account richer lexical information

INRIA É. de la Clergerie Evaluating lexica 5-8/10/11 19 / 19

Références

Documents relatifs

We compared our lexicon against the Tr´esor de la Langue Franc¸aise Informatis´e (TLFI) - a freely available French lexicon containing verbal SCF information from a dictionary. We

Type 1 diabetes remains the most common form of diabetes in children; however, there is increasing recogni- tion of other forms such as type 2 diabetes or monogenic forms

◮ FRMG lglex ’s verb entries are the result of a conversion process from the original tables. → this conversion process certainly

This integration required a conversion step so as to extract the syntactic information encoded in Lexicon-Grammar tables and represent it in the NLP lexical formalism used by FRMG

a verb is suspect for lexicon L if occurring more often than expected in failed sentences that succeed for L EFFF , in co-occurrence with non-suspect verbs. Tried on

We present some evaluation results for four French syntactic lexica, obtained through their conversion to the Alexina format used by the Lefff lexicon (Sagot, 2010), and

This integration required a conversion step so as to extract the syntactic information encoded in Lexicon-Grammar tables and represent it in the NLP lexical formalism used by FRMG

Une troisième étude s’est intéressée au suivi de 58 yeux (57 patients) traités par autogreffe conjonctivale avec ou sans suture du volet scléral (51 yeux pour fuite au niveau de