1 / 52

ELABORAZIONE DEL LINGUAGGIO NATURALE

ELABORAZIONE DEL LINGUAGGIO NATURALE. CONOSCENZA LESSICALE WORDNET SEMANTICA DISTRIBUZIONALE. CONOSCENZA LESSICALE. Conoscenza sulle PAROLE di una lingua Una componente fondamentale della nostra conoscenza linguistica. CHE INFORMAZIONI SONO CONTENUTE NEL LESSICO .

connie
Télécharger la présentation

ELABORAZIONE DEL LINGUAGGIO NATURALE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ELABORAZIONE DEL LINGUAGGIO NATURALE CONOSCENZA LESSICALEWORDNET SEMANTICA DISTRIBUZIONALE

  2. CONOSCENZA LESSICALE • Conoscenzasulle PAROLE diuna lingua • Unacomponentefondamentaledella nostra conoscenzalinguistica

  3. CHE INFORMAZIONI SONO CONTENUTE NEL LESSICO • Le FORME diunaparola (ortografiaepronuncia) • La loro STRUTTURA (daquali MORFEMI sonocomposti) • Informazioni GRAMMATICALI • Esempidi USO • ETIMOLOGIA • Il SIGNIFICATO dellaparola (compresisinonimi)

  4. UN ESEMPIO DI VOCE IN DIZIONARIO toad /təųd/ n.1 any froglike amphibian of the family Bufonidae, esp. of the genus Bufo, breeding in water but living chiefly on land. 2 any of various similar tailless amphibians. 3 a repulsive or detestable person. toadishadj.[Old English tadige, tadde, tada, of unknown origin] (COD 9)

  5. FORME DI PAROLA • PRONUNCIA • Fonemi, oggigiorno solitamente IPA /təųd/ • Prosodia (accento) • ORTOGRAFIA • Sillabe • Varianti

  6. INFORMAZIONI GRAMMATICALI • Morfologia • Verbi: inflessioni • Nomi: forma del plurale • dito dita • Sintassi • Parte del discorso (con restrizioni: awake predicative (the baby is awake) ma non attributive (*the awake baby) • Verbi: transitivo / intransitivo, quali tipi di preposizioni, etc.

  7. COLLOCAZIONI • Frasifatte:Studentelavoratore,padre padrone, governoombra • Preferenzed’uso: • Il sostantivovinotipicamentemodificatodagliaggettivibiancoerosso(ma non giallo) • (Inglese: Il sostantivobantipicamentemodificatodagliaggettivitotalocomplete, associato con ilverboimpose, etc.)

  8. SIGNIFICATO • Una delle funzioni piu’ importanti di un dizionario e’ caratterizzare le ACCEZIONI di una parola attraverso DEFINIZIONI • Probabilmente l’aspetto piu’ difficile della lessicografia

  9. DUE TIPI DI SIGNIFICATO LESSICALE • Significato DENOTAZIONALE: conoscenzasulla ‘parola in se’: • Il CAVALLO e’ un ANIMALE dallalungacriniera … • (Il tipodiconoscenzatipicamentetrovatanelledefinizioni) • Significato COMPOSIZIONALE: conoscenzasul come la parolasicombina con altre parole

  10. ESEMPI DI SIGNIFICATO DENOTAZIONALE IN DIZIONARIO contascàtti: Dispositivo installato a richiesta presso l’utente per la documentazione del traffico telefonico (Zingarelli 1995) maneggevole: Che si puo’ maneggiare facilmente || Fig. trattabile, arrendevole || T. mar. del vento, quando permette l’esecuzione di qualsiasi manovra (Palazzi-Folena, 1992)

  11. TIPI DI TEORIE SEMANTICHE • Teorie REFERENZIALI • Teorie RELAZIONALI / STRUTTURALI • Teorie COGNITIVE • Teoriadei PROTOTIPI VEDREMO CHE OGNUNA DI QUESTE TEORIE SVOLGE UNA FUNZIONE ALL’INTERNO DI UN DIZIONARIO

  12. TEORIE REFERENZIALI DEL SIGNIFICATO • Funzioneprincipaledelle parole: RIFERIRSI ad oggettinelmondocircostante • Significatodi SEDIA: le proprieta’ checipermettonodiidentificareunasediaquando la vediamo • Ha 4 gambe, unoschienale, unasuperficiepiatta, etc .. • Portano a definizioni del tipo GENUS E DIFFERENTIA

  13. GENUS DIFFERENTIAE GENUS E DIFFERENTIA horsenoun 1 a solid-hoofed plant-eating domesticated mammal with a flowing mane and tail, used for riding, racing, and to carry and pull loads New Oxford Dictionary of English

  14. RETI SEMANTICHE

  15. RETI SEMANTICHE: RISULTATI DALLA PSICOLOGIA COGNITIVA • Collins & Quillian, 1969: tempi per decidere se un oggetto ha una certa proprieta’ aumentano a seconda della ‘distanza’ • A canary is yellow • A canary has feathers • A canary eats food

  16. LIMITI DELLA DEFINIZIONE VIA GENUS & DIFFERENTIA • Putnam: • `faggio’ / `olmo’ • `diamante’ / `zircone’ • Jackson: happen vsoccur vsbefall vstranspire • Everything is illuminated: `harmonize’ vs `agree’,

  17. TEORIE RELAZIONALI DEL SIGNIFICATO LESSICALE • Le teorie RELAZIONALI ipotizzanocheilsignificatodiunaparolae’ stabilitodalle sue RELAZIONI DI SIGNIFICATO con altreparole • Sviluppate in ambitolessicografico

  18. RELAZIONI SEMANTICHE • Relazionigia’ utilizzate in definizioni per Genus e Differentia: • IPERONIMIA: • Garofano, rosa, margheritasonotuttiiponimidi FIORE • MERONIMIA • Altrerelazioni: • SINONIMIA: quando due lemmidistintihanno lo stessosignificato • Spessoessenziale per definizioni / traduzioni (ETERONIMIA) • ANTONIMIA: quando due lemmihannosignificati CONTRARI • Bello / brutto, amore / odio

  19. HYPERNYM PARTI MERONIMIA NELLE DEFINIZIONI horsenoun 1 a solid-hoofed plant-eating domesticated mammal with a flowing mane and tail, used for riding, racing, and to carry and pull loads New Oxford Dictionary of English

  20. CIRCOLARITA DEFINIZIONE PER SINONIMIA miserable 1 very unhappy, wretched 2 causing misery 3 squalid 4 mean unhappy 1 sad or depressed 2 unfortunate or wretched wretched 1 miserable or unhappy 2 worthless Collins Pocket English Dictionary (2000)

  21. DEFINIZIONI PER ANTONIMIA artificial not real conventional not spontaneous or sincere or original vacant not occupied Concise Oxford Dictionary 9

  22. WORDNET • A lexical database created at Princeton • Freely available for research from the Princeton site • http://www.cogsci.princeton.edu/~wn/ • Information about a variety of SEMANTICAL RELATIONS • Three sub-databases (supported by psychological research as early as (Fillenbaum and Jones, 1965)) • NOUNs • VERBS • ADJECTIVES and ADVERBS • Each database organized around SYNSETS

  23. SYNSETS • Senses (or `lexicalized concepts’) are represented in WordNet by the set of words that can be used in AT LEAST ONE CONTEXT to express that sense / lexicalized concept: the SYNSET • E.g., {chump, fish, fool, gull, mark, patsy, fall guy, sucker, shlemiel, soft touch, mug}(gloss: person who is gullible and easy to take advantage of)

  24. IL DATABASE DEI NOMI • About 90,000 forms, 116,000 senses • Relations:

  25. IPERNIMIA IN WORDNET 2 senses of robin                                                       Sense 1robin, redbreast, robin redbreast, Old World robin, Erithacus rubecola -- (small Old World songbird with a reddish breast)       => thrush -- (songbirds characteristically having brownish upper plumage with a spotted breast)           => oscine, oscine bird -- (passerine bird having specialized vocal apparatus)               => passerine, passeriform bird -- (perching birds mostly small and living near the ground with feet having 4 toes arranged to allow for gripping the perch; most are songbirds; hatchlings are helpless)                   => bird -- (warm-blooded egg-laying vertebrates characterized by feathers and forelimbs modified as wings)                       => vertebrate, craniate -- (animals having a bony or cartilaginous skeleton with a segmented spinal column and a large brain enclosed in a skull or cranium)                           => chordate -- (any animal of the phylum Chordata having a notochord or spinal column)                               => animal, animate being, beast, brute, creature, fauna -- (a living organism characterized by voluntary movement)                                   => organism, being -- (a living thing that has (or can develop) the ability to act or function independently)                                       => living thing, animate thing -- (a living (or once living) entity)                                           => object, physical object --                                                => entity, physical thing --

  26. MERONIMIA IN WORDNET wn beak –holon Holonyms of noun beak 1 of 3 senses of beak Sense 2 beak, bill, neb, nib PART OF: bird

  27. VERBI • About 10,000 forms, 20,000 senses • Relations between verb meanings:

  28. RELAZIONI TRA SIGNIFICATI VERBALI V1 ENTAILS V2 when Someone V1 (logically) entails Someone V2- e.g., snore entails sleep TROPONYMY when To do V1 is To do V2 in some manner- e.g., limp is a troponym of walk

  29. AGGETTIVI & AVVERBI • About 20,000 adjective forms, 30,000 senses • 4,000 adverbs, 5600 senses • Relations:

  30. WORDNET IN NLTK (Chapter 2.5) >>> from nltk.corpus import wordnet as wn >>> wn.synsets('motorcar') [Synset('car.n.01')]

  31. OBIEZIONI ALL’APPROCCIO SEMANTIC NETWORK AL SIGNIFICATO • Obiezionifilosofiche • Wittgenstein, Putnam • Obiezionicognitiviste

  32. WITTGENSTEIN: ‘GAME’ • What is common to all games? • Are they all ‘amusing’? • Cfr. chess • Or is there always winning and losing? • Counterex: child throwing his ball at the wall • Look at the parts played by skill and luck • “I can think of no better expression that FAMILY RESEMBLANCE” • ‘games form a family’

  33. PUTNAM • the term ‘lemon’ not definable by simply conjoining its ‘definining characteristics’ yellow color / tart taste / a certain kind of peel • Abnormal members (green lemon) • Three legged tiger (Also: three-legged chair, see below)

  34. PROBLEMI EMPIRICI PER L’APPROCCIO TASSONOMICO / RETI SEMANTICHE • Typicality effects • Is a tomato a vegetable or a fruit? • ‘Is this art?’ • Failures of transitivity • If A is a B and B is a C, is A a C?

  35. ‘Fuzzy’ or ‘graded’ categorization • A necessary and sufficient definition should pick up all the category members and none of the non-members • But this is not what happens: • Hampton (1979): no clear division between members and non-members of 8 categories • Kitchen utensils: SINK? SPONGE? • Vegetables: TOMATOES? GOURDS? • Agreement on typicality judgments • (‘think of a fish, any fish’) • Rosch (1975): very high correlation (.97) between subjects’s typicality rankings for 10 categories

  36. Typicality effects • The ease with which people judge CATEGORY MEMBERSHIP depends on typicality • Rips, Shoben and Smith (1973): Fast to affirm that a robin is a bird; not so fast to affirm that a chicken is a bird • Posner & Keele: similarity to visual pattern • Learning: typical items learned before atypical ones (Rosch Simpson & Miller 1976) • Learning is faster if subjects are taught on typical items • Typicality affects speed of inference • Rips 1975: • Garrod & Sanford 1977: faster reading time for “The bird came in through the front door” when ROBIN than when GOOSE

  37. ALTERNATIVA: TEORIA DEI PROTOTIPI • La teoria dominante dei concetti in Psicologia e’ la teoria dei PROTOTIPI proposta da Rosch negli anni ’70

  38. La teoria in breve • Manteniamo rappresentazioni dei concetti sulla base delle loro ‘features’ (TRATTI) • Per ogni classe di oggetti esistono dei rappresentanti piu’ TIPICI • Per decidere se un oggetto e’ una sedia od una poltrona calcoliamo la SOMIGLIANZA tra questo oggetto e la ‘tipica sedia’ e la ‘tipica poltrona’

  39. FEATURE NORMS • Psychologists have been collecting concept features from subjects at least since Rosch and Mervis (1975) • Different methodologies used (from free association to very tightly controlled) • Three such databases currently available • Garrard et al (2001) - GA • Vinson and Vigliocco (2004) - VV • McRae et al (2005) – MCRA - the largest, also classified

  40. SPEAKER-GENERATED FEATURES (VINSON AND VIGLIOCCO)

  41. CONCETTI COME ‘CLUSTER’ CHICKEN GOOSE ORIOLE ROBIN OSTRICH

  42. What makes an item typical? Rosch & Mervis 1975 • Items are typical when they have HIGH FAMILY RESEMBLANCE with members of the category: • Typical items have many of the attributes of members • Do not have properties of nonmembers • Irrespective of frequency: ORIOLE vs CHICKEN • Evidence 1: checked that subjects agree on typicality for several natural categories • Asked subjects to list attributes (actually, check) • Weighed each attribute by how many items it occurred with within the category • ‘SCORE’ indicates how many common features • Found that score highly predictive of typicality (.84-.91) Five most typical ‘furniture’ (CHAIR, SOFA, TABLE, DRESSER, DESK) have 13 features in common Five least typical (CLOCK, PICTURE, CLOSET, VASE, TELEPHONE) had 2 attributes in common

  43. DEFINIZIONE PER TIPICALITA’ day of rest a day set aside from normal activity, typically, Sunday on religious grounds measles an infectious viral disease causing fever and a red rash, typically occurring in childhood Concise Oxford Dictionary

  44. FEATURE NORMS & DIZIONARI • Questi dati sui tratti tipici di concetti raccolti da soggetti potrebbero essere utili per guidare lo sviluppo di definizioni o delle relazioni semantiche in un dizionario tipo WordNet

  45. FEATURE NORMS PER ELDIT • Un progetto congiunto European Academy Bolzano / UniTN (CIMEC) per raccogliere feature norms su parole in Italiano e Tedesco

  46. METODI • Dati raccolti da studenti nelle scuole di Bolzano • ~70 studenti di lingua madre Italiana e 70 di lingua madre tedesca • Raccolto dati su 50 concetti

  47. RISULTATI • ~200 paia concetto / attributo in comune tra tutti e 70 i soggetti tedeschi ed altrettante per gli Italiani • Tipi di proprieta’ piu’ importanti: • Iponimia ( il cane e’ un animale ) • Parte ( il cane ha le zampe) • Qualita’ esterna ( le fragole sono rosse) • Comportamento ( il cane abbaia )

  48. CONOSCENZA COMPOSIZIONALE • Dal punto di vista composizionale si possono fare almeno due distinzioni : • Tra PREDICATI ed ARGOMENTI • Tra parole FUNZIONALI e parole ‘CONTENUTO’

  49. PREDICATO ARGOMENTI PREDICATI ED ARGOMENTI Maria ha noleggiato una macchina

  50. PREDICATI ED ARGOMENTI • Numeri diversi di argomenti: • 0 (PIOVERE, NEVICARE) • 1 (CADERE, NUOTARE) • 2 (NOLEGGIARE, CONOSCERE) • 3 (DARE, DEDICARE) • Non solo predicati verbali • Sono STANCO / AFFAMATO / CONTENTO / ….

More Related