Metaphor Detection in a Poetry Corpus

Slides:



Advertisements
Similar presentations
Classification of Animals
Advertisements

Classifying Animals Part 2 Vertebrates
CS460/IT632 Natural Language Processing/Language Technology for the Web Lecture 2 (06/01/06) Prof. Pushpak Bhattacharyya IIT Bombay Part of Speech (PoS)
Fishes.
Classifying the Backboned Animals
Miss Pflaumer Third Grade May 2007
Chapter 16 Fishes, Amphibians, and Reptiles An animal with a skull and a backbone; includes mammals, birds, reptiles, amphibians and fish Click for Term.
VERTEBRATES There are five groups of vertebrates: Fish Amphibians
Animal Classification A Writing Across Curriculum Activity
Automatic Metaphor Interpretation as a Paraphrasing Task Ekaterina Shutova Computer Lab, University of Cambridge NAACL 2010.
SI485i : NLP Set 12 Features and Prediction. What is NLP, really? Many of our tasks boil down to finding intelligent features of language. We do lots.
Vertebrates A Describe the similarities and differences that characterize diverse living things; describe how the structures of living things help.
Fish.
VERTEBRATE ANIMALS VERTEBRATES ARE ANIMALS WITH ENDOSKELETONS VERTEBRATE ANIMALS HAVE BACKBONES MOST VERTEBRATES ARE FISH FISH CAN BE CLASSIFIED INTO 3.
The Vertebrates By: Noora Al-Thani 6B. What are Vertebrates and Invertebrates ? The classification of Vertebrates is mammals, Reptiles, Fish, Birds, Amphibians.
Animal Classification s. There are five different ways we can class animals...
Since there are so many animals they are put into different groups according to similar characteristics.
Classifying Animals Kaityln Taylor. Content Area: Science Grade Level: 2 nd Summary: The purpose of this PowerPoint is to provide students with facts.
Vertebrates A Describe the similarities and differences that characterize diverse living things; describe how the structures of living things help.
CLASSIFICATION. ANIMALS VERTEBRATES HAVE A SKELETON WITH bones, SPINAL COLUMN AND SKULL INVERTEBRATES DON´T HAVE INNER SKELETON WITH SPINAL COLUMN AND.
Science Vertebrates Animals with backbones. Science Vertebrates Animals with backbones.
Kenny’s Animal Classes!
 Mrs.Agger’s Fourth Grade Class Animal Kingdom!!!!!
CLASSIFYING ANIMALS VertebratesInvertebrates  Animals with a Backbone or Spinal Column  Most animals at the zoo are vertebrates.  There are 5 main.
Key Terms Grouping Together Spineless Worms Grow a Backbone You Filthy Animal Hodge- Podge
Sentiment Analysis Using Common- Sense and Context Information Basant Agarwal 1,2, Namita Mittal 2, Pooja Bansal 2, and Sonal Garg 2 1 Department of Computer.
Read pages 6-7. Classification is the grouping of things according to characteristics. The science of classifying organisms is known as taxonomy. One.
Classify: to sort into groups. Students will classify organisms into groups and relate how they determined the groups with how and why scientists use.
Line Break Refers to a place where a line of poetry ends, unguided by traditional punctuation conventions. Line breaks are important in poetry because.
Intrinsic Subspace Evaluation of Word Embedding Representations Yadollah Yaghoobzadeh and Hinrich Schu ̈ tze Center for Information and Language Processing.
The Animal Kingdom Living on Planet Earth.
Pre-Kindergarten Scope & Sequence Unit 8: Spring is in the Air
The Wonderful World of Poetry…
Reading Objectives: Close Reading
Scientists classify animals to learn more about them.
The main characteristic of all vertebrates is a backbone
Vertebrates free Sceince Videos for Kids.
Classification of Animals SC.3.L.15.1
Classification of Animals
Chapter 19 Lesson 2 Vertebrates
Memory Standardization
FISH AMPHIBIANS REPTILES MAMMALS BIRDS
Animals Compare the characteristic structures of invertebrate animals (including sponges, segmented worms, echinoderms, mollusks, and arthropods)
Machine Learning Ali Ghodsi Department of Statistics
Teacher Notes This PowerPoint presentation has been designed to support teachers to deliver a series of lessons on writing informative texts. It specifically.
Classification – The Vertebrates
Living Things Classification.
What is Classification?
What is Classification?
Natural Sciences Grade 7
Animals Need…. Food Water Air Shelter.
VERTEBRATE ANIMALS VERTEBRATES ARE ANIMALS WITH ENDOSKELETONS VERTEBRATE ANIMALS HAVE BACKBONES MOST VERTEBRATES ARE FISH FISH CAN BE CLASSIFIED INTO 3.
Animals with Backbones
Miss Stieg Third Grade May 4, 2006
NETWORK-BASED MODEL OF LEARNING
Created by; Mrs. Clark Edited by; Lynn Garner
What is Classification?
iSRD Spam Review Detection with Imbalanced Data Distributions
Automatic Detection of Causal Relations for Question Answering
Classification of Animals
Classification.
Classification of Animals
Teacher Notes This PowerPoint presentation has been designed to support teachers to deliver a series of lessons on writing informative texts. It specifically.
Vertebrates Animals with a Backbone or Spinal Column:
Animals: Chordates.
Chordates - a hollow nerve cord - a notochord
Teacher Notes This PowerPoint presentation has been designed to support teachers to deliver a series of lessons on writing informative texts. It specifically.
Extracting Why Text Segment from Web Based on Grammar-gram
Classification of Animals
UNIT 3. ANIMALS.
Presentation transcript:

Metaphor Detection in a Poetry Corpus Vaibhav Kesarwani, Diana Inkpen, Stan Szpakowicz, and Chris Tănăsescu (Margento) Metaphor Detection in a Poetry Corpus University of Ottawa Canada

Outline Goal Related Work The Graph Poem Project Metaphor Types and Examples Rule-Based Identification Method Method Based on Word Embeddings Results Conclusion Future Work

Metaphor Detection in Poetry Goal Metaphor Detection in Poetry Classification of sentences as Metaphor or Non-metaphor is based on subject words in a sentence. Subject words are identified in a sentence using POS tagging and the Stanford dependency parser.

Related Work Neuman et al. (2013) propose to categorize metaphor by part-of-speech (POS) tag sequences such as Noun-Verb-Noun, Adjective-Noun, and so on. We follow the same categorization. Neuman et al. (2013) also describe a statistical model based on Mutual Information and selectional preferences. Our experiments do not involve finding selectional preference sets directly. Instead, we use word embeddings. Shutova et al. (2016) introduce a statistical model of metaphor detection. Ours is more focused on poetry.

The Graph Poem Project Our work is part of the Graph Poem project (MARGENTO, 2012) http://artsites.uottawa.ca/margento/en/the-graph-poem/ The Graph Poem: A graph of poems connected by (multiple) edges, ever-ramifying, ever-expanding. The edges reflect the similarity of topics, themes, meter, rhyme, diction, time period, and so on. Multi-label subject classification of poems (Lou et al. @FLAIRS 2015) Meter detection (Tanasescu et al. @FLAIRS 2016) Rhyme detection, metaphor detection

Type 1 Metaphor Part of Speech (POS) tag sequence of “noun-verb-noun” or “noun-verb-determiner-noun” The verb is a copula such as is, are, was, were, be, am. Examples: Machines are the animals of the humans Words are a weight Eyes are lakes

Type 2 Metaphor Part of Speech (POS) tag sequence of “noun-verb-noun” or “noun-verb-determiner-noun” The verb is any non-copular verb: eats, runs, played, ……… Examples: The war absorbed his energy My car drinks gasoline Money flows like liquid

Type 3 Metaphor Part of Speech (POS) tag sequence of “adjective-noun” Examples: He had some dark thoughts She is a sweet girl We also propose types 4 “noun-verb” and 5 “verb-verb” (examples on the next slide), to be included in our future work.

Metaphor Examples in Poetry Type 1: As if the world were a taxi, you enter it Type 2: I counted the echoes assembling, thumbing the midnight on the piers Type 3: The moving waters at their priestlike task Type 4: The yellow smoke slipped by the terrace, made a sudden leap Type 5: To die – to sleep

Rule-Based Identification Methods Concrete-Abstract rule: If noun1 is concrete and noun2 is abstract, then we have a metaphor. Example: Eyes are strangers “eyes”: concrete; “stranger”: abstract WordNet is used to find the noun classes [concrete/abstract]. (This method has been proposed by Turney et al., 2011)

Rule-Based Identification Methods Concrete-Class Overlap rule: If both nouns are of concrete class, check for WordNet hypernym overlap. If there is no overlap, then it is a metaphor. Example: My lawyer is a shark “lawyer”: concrete; “shark”: concrete (This method is also from Turney et al., 2011)

Wordnet Hypernyms lawyer, attorney -- (a professional person authorized to practice law; conducts lawsuits or gives legal advice) => professional, professional person -- (a person engaged in one of the learned professions) => adult, grownup -- (a fully developed person from maturity onward) => person, individual, someone, somebody, mortal, soul -- (a human being; "there was too much for one person to do") => 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 -- (a tangible and visible entity; an entity that can cast a shadow;) => physical entity -- (an entity that has physical existence) => entity -- (that which is perceived or known or inferred to have its own distinct existence (living or nonliving)) shark -- (any of numerous elongate mostly marine carnivorous fishes with heterocercal caudal fins and tough skin covered with small toothlike scales) => cartilaginous fish, chondrichthian -- (fishes in which the skeleton may be calcified but not ossified) => fish -- (any of various mostly cold-blooded aquatic vertebrates usually having scales and breathing through gills; ) => aquatic vertebrate -- (animal living wholly or chiefly in or on water) => vertebrate, craniate -- (animals having a bony skeleton with a segmented spinal column and a large brain ) => animal, animate being, beast, brute, creature, fauna -- (a living organism characterized by voluntary movement) => object, physical object -- (a tangible and visible entity; an entity that can cast a shadow) => entity -- (that which is perceived or known or inferred to have its own distinct existence)

Our Method: Use Word Embeddings GloVe model (trained on the Gigaword corpus) is used to get word vectors of word1 and word2. Features for Classification: Word Vector Difference Cosine Similarity PMI (Pointwise Mutual Information) ConceptNet Overlap We use Weka to classify based on these features.

Vector Difference of Word Vectors Vector Difference of vectors of word1 and word2 captures contextual contrast 100-dimensional word vectors trained on GloVe Gigaword corpus For metaphor, Σ|Ci| should be high

Cosine Similarity of Word Vectors Cosine Similarity of vectors of word1 and word2 captures contextual similarity.

Pointwise Mutual Information PMI of word1 and word2 (trained on the British National Corpus) captures collocation information between the two words.

ConceptNet Overlap ConceptNet Overlap is computed from the SurfaceText entities of ConceptNet knowledge base. For example, "birds" shows these associations: [[Birds]] have [[feathers]] [[birds]] can [[fly through the air]] [[Some birds]] do not [[migrate in the Winter]] [[birds]] have [[beaks]] [[Birds]] have [[hollow bones]] [[birds]] have [[wings]] [[Birds]] are [[not mammals]] [[birds]] can [[sing songs]] [[birds]] can [[spread their wings]] [[birds]] have [[two wings]] [[Birds]] can be [[colored]] [[The birds]] are [[singing]] [[Some birds]] are [[very colorful]]

New Dataset: Metaphor in Poetry 680 lines of English poems from the Poetry Foundation (PoFo) website. 340 as training data and 340 as test data. Two annotators labelled them as metaphor or not. Initially, kappa value was 0.39 and agreement 66.79%. After involving a third annotator kappa increased to 0.46 and agreement to 72.94%. Majority vote used in the cases of disagreement. Click View then Header and Footer to change this footer

Results Results for the class metaphor Results for the class non-metaphor

Direct comparison with related work (Rule+Stat = the best between our rule-based and and our statistical ML method, namely the ML method)

Conclusion Statistical methods are better than rule-based methods. Non-poetry training data helps to find metaphors in poetry. Precision is better at predicting the metaphor class than the non-metaphor class.

Future Work Analyze phrase compositionality (Mikolov et al., 2013) to handle multi-word expressions and phrases better. Try type-independent metaphor detection. Try Deep Learning classifiers (like CNN) to improve classification results. Distinguish between poetic and common-speech metaphor. For rule-based methods, apply context overlap to remove ambiguity between various word senses.

Genuine poetry can communicate before it is understood. – T. S. Eliot. Thank you! Questions?