|
{ |
|
"paper_id": "S17-2011", |
|
"header": { |
|
"generated_with": "S2ORC 1.0.0", |
|
"date_generated": "2023-01-19T15:29:23.296546Z" |
|
}, |
|
"title": "Idiom Savant at Semeval-2017 Task 7: Detection and Interpretation of English Puns", |
|
"authors": [ |
|
{ |
|
"first": "Samuel", |
|
"middle": [], |
|
"last": "Doogan", |
|
"suffix": "", |
|
"affiliation": { |
|
"laboratory": "", |
|
"institution": "Informatics University College Dublin Dublin", |
|
"location": { |
|
"country": "Ireland" |
|
} |
|
}, |
|
"email": "[email protected]" |
|
}, |
|
{ |
|
"first": "Aniruddha", |
|
"middle": [], |
|
"last": "Ghosh", |
|
"suffix": "", |
|
"affiliation": { |
|
"laboratory": "", |
|
"institution": "Informatics University College Dublin Dublin", |
|
"location": { |
|
"country": "Ireland" |
|
} |
|
}, |
|
"email": "[email protected]" |
|
}, |
|
{ |
|
"first": "Hanyang", |
|
"middle": [], |
|
"last": "Chen", |
|
"suffix": "", |
|
"affiliation": { |
|
"laboratory": "", |
|
"institution": "Informatics University College Dublin Dublin", |
|
"location": { |
|
"country": "Ireland" |
|
} |
|
}, |
|
"email": "[email protected]" |
|
}, |
|
{ |
|
"first": "Tony", |
|
"middle": [], |
|
"last": "Veale", |
|
"suffix": "", |
|
"affiliation": { |
|
"laboratory": "", |
|
"institution": "Informatics University College Dublin Dublin", |
|
"location": { |
|
"country": "Ireland" |
|
} |
|
}, |
|
"email": "[email protected]" |
|
} |
|
], |
|
"year": "", |
|
"venue": null, |
|
"identifiers": {}, |
|
"abstract": "This paper describes our system, entitled Idiom Savant, for the 7th Task of the Semeval 2017 workshop, \"Detection and interpretation of English Puns\". Our system consists of two probabilistic models for each type of puns using Google n-grams and Word2Vec. Our system achieved fscore of 0.84, 0.663, and 0.07 in homographic puns and 0.8439, 0.6631, and 0.0806 in heterographic puns in task 1, task 2, and task 3 respectively.", |
|
"pdf_parse": { |
|
"paper_id": "S17-2011", |
|
"_pdf_hash": "", |
|
"abstract": [ |
|
{ |
|
"text": "This paper describes our system, entitled Idiom Savant, for the 7th Task of the Semeval 2017 workshop, \"Detection and interpretation of English Puns\". Our system consists of two probabilistic models for each type of puns using Google n-grams and Word2Vec. Our system achieved fscore of 0.84, 0.663, and 0.07 in homographic puns and 0.8439, 0.6631, and 0.0806 in heterographic puns in task 1, task 2, and task 3 respectively.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Abstract", |
|
"sec_num": null |
|
} |
|
], |
|
"body_text": [ |
|
{ |
|
"text": "A pun is a form of wordplay, which is often profiled by exploiting polysemy of a word or by replacing a phonetically similar sounding word for an intended humorous effect. From Shakespeare's works to modern advertisement catchphrases (Tanaka, 1992) , puns have been widely used as a humorous and rhetorical device. For a polysemous word, the non-literal meaning is addressed when contextual information has low accordance with it's primary or most prominent meaning (Giora, 1997) . A pun can be seen as a democratic form of literal and non-literal meaning. In using puns, the author alternates an idiomatic expression to a certain extent or provides enough context for a polysemous word to evoke non-literal meaning without attenuating literal meaning completely (Giora, 2002) .", |
|
"cite_spans": [ |
|
{ |
|
"start": 234, |
|
"end": 248, |
|
"text": "(Tanaka, 1992)", |
|
"ref_id": "BIBREF11" |
|
}, |
|
{ |
|
"start": 466, |
|
"end": 479, |
|
"text": "(Giora, 1997)", |
|
"ref_id": "BIBREF5" |
|
}, |
|
{ |
|
"start": 763, |
|
"end": 776, |
|
"text": "(Giora, 2002)", |
|
"ref_id": "BIBREF6" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "Task 7 of the 2017 SemEval workshop (Miller et al., 2017) involves three subtasks. The first subtask requires the system to classify a given context into two binary categories: puns and non-puns. The second subtask concerns itself with finding the word producing the punning effect in a given context. The third and final subtask involves annotating puns with the dual senses with which the punning effect is being driven.", |
|
"cite_spans": [ |
|
{ |
|
"start": 36, |
|
"end": 57, |
|
"text": "(Miller et al., 2017)", |
|
"ref_id": "BIBREF10" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "In a written context, puns are classified into 2 categories. Homographic puns shown in example 1, exploits polysemy of the language by using a word or phrase which has multiple coherent meanings given its context; And heterographic puns shown in example 2, humorous effect is often induced by adding incongruity by replacing a phonetically similar word which is semantically distant from the context.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "(1) Tires are fixed for a flat rate.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "(2) A dentist hates having a bad day at the orifice.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "The rest of the paper is organized as follows. Section 2 give a general description of our approach. Section 3 and 4 illustrate the detailed methodologies used for detecting and locating Heterographic and Homographic puns respectively. In section 5, we provided an analysis of the system along with experimental results and finally section 6 contains some closing remarks and conclusion.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Introduction", |
|
"sec_num": "1" |
|
}, |
|
{ |
|
"text": "We argue that the detection of heterographic puns rests on two assumptions. Firstly, the word being used to introduce the punning effect is phonetically similar to the intended word, so that the reader can infer the desired meaning behind the pun. Secondly, the context in which the pun takes place is a subversion of frequent or idiomatic language, once again so that the inference appropriately facilitated. This introduces two computational tasks -designing a model which ranks pairs of words based on their phonetic similarity, and introducing a means by which we can determine the normativeness of the context in question. The sys-tem is attempting to recreate how a human mind might recognize a pun. Take this example:", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "General Approach", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "(3) \"Acupuncture is a jab well done\"", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "General Approach", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "It is immediately noticeable that this sentence is not a normative use of language. However, we can easily recognize the familiar idiom \"a job well done\", and it is easy to make this substitution due to the phonetic overlap between the words \"job\" and \"jab\". Our system is therefore trying to mimic two things: the detection of an infrequent (or even semantically incoherent) use of language, and the detection of the intended idiom by means of phonetic substitution. To model the detection of subverted uses of idioms, we use the Google n-gram corpus (Brants and Franz, 2006) . We assume that the normativeness of a context is represented by the n-gram frequency provided by this corpus. The system then replaces phonetically similar words in the non-normative context in an attempt to produce an idiomatic use of language. We determine an idiomatic use of language to be one that has an adequately high frequency in the Google n-gram corpus. We argue that if, by replacing a word in an infrequent use of language with a phonetically similar word, we arrive at a very frequent use of language, we have derived an indicator for the usage of puns. For example, the quadgram \"a jab well done\" occurs 890 times in the corpus. By replacing the word \"jab\" with \"job\", the new quadgram occurs 203575 times. This increase in frequency suggests that a pun is taking place. The system uses several methods to examine such changes in frequency, and outputs a \"score\", or the estimated likelihood that a pun is being used. The way in which these scores are computed is detailed below.", |
|
"cite_spans": [ |
|
{ |
|
"start": 552, |
|
"end": 576, |
|
"text": "(Brants and Franz, 2006)", |
|
"ref_id": "BIBREF1" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "General Approach", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "Homographic puns are generally figurative in nature. Due to identical spelling, interpretation of literal and non-literal meaning is solely dependent on the context information. Literal and non-literal meaning of a polysemous word are referred by different slices of context, which is termed as \"double grounding\" by Feyaerts and Br\u00f4ne (2002) . Considering example 1, it is easily noticeable that two coherent meanings of 'flat', 'a deflated pneumatic tire' and 'commercially inactive', have been referred by 'Tires' and 'rate' respectively. Thus detection of homographic puns involves establishing links between concepts present in context with meanings of polysemous word.", |
|
"cite_spans": [ |
|
{ |
|
"start": 317, |
|
"end": 342, |
|
"text": "Feyaerts and Br\u00f4ne (2002)", |
|
"ref_id": "BIBREF3" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "General Approach", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "From the general description of different types of puns, it is evident that detection of pun is complex and challenging. To keep the complexity at its minimum, Idiom Savant contains two distinct models to handle homographic and heterographic pun tasks.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "General Approach", |
|
"sec_num": "2" |
|
}, |
|
{ |
|
"text": "Idiom Savant calculates scores for all possible ngram pairs for a given context. To generate pairs, the system first separates the context into n-grams. For each of these original n-grams, the corpus is searched for n-grams that are at most one word different. The pairs are then scored using the metric described below. The scores for these pairs are then used to tackle each subtask, which is covered below. Since heterographic puns are fabricated by replacing phonetically similar words, classification and identification requires a phonetic knowledge of the language. To obtain phonetic representation of a word, CMU pronouncing dictionary 1 was used. We have ignored the lexical stresses in the pronunciation, as experimentation showed that coarser definitions led to better results. To measure the phonetic distance between a phoneme representation of a pair of words, we have employed three different strategies which use Levenshtein distances. The first distance formula, d ph , calculates Levenshtein distance between two words by considering each CMU phoneme of a word as a single unit. Take the pun word and intended word from example 2:", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "d ph ({AO, F, AH, S}, {AO, R, AH, F, AH, S}) = 2", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "Our second strategy treats the phonetic representation as a concatenated string and calculates Levenshtein distance d phs .", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "d phs (\"AOFAHS\", \"AORAHFAHS\") = 3", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "With this metric, the distance reflects the similarity between phonemes such as \"AH\" and \"AA\", which begin with the same vowel sounds. The fallback method for out-of-vocabulary words uses the original Levenshtein string distance.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "d ch (\"office\", \"orifice\") = 2", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "The system normalizes these distances with respect to the length of the phonetic representation of the target words to reduce the penalty caused by word length. By converting distance measures into similarity ratios, longer words remain candidates for possible puns, even though Levenshtein distances will be greater than the shorter counterparts. The system chooses the maximum positive ratio from all possible phonetic representations. If no positive ratio exists, the target word is discarded as a possible candidate.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "ratio f (w 1 , w 2 ) = min w\u2208w 1 ,w 2 ||w|| f \u2212d f (w 1 ,w 2 ) min w\u2208w 1 ,w 2 ||w|| f", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "wheref \u2208 {ph, phs, ch} ratio = max(ratio ph , ratio phs , ratio ch )", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "We choose the maximum ratio in order to minimize the drawbacks inherent in each metric. The assumption is that the maximum ratio between all three methods is the most reflective of the real phonetic similarity between a pair of words. The final score is calculated as the inverted ratio subtracted from the difference between the ngram pair's frequency.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "score = (f req ngram \u2212 f req ngram ) \u2212 1 ratio n", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "Deducting the original n-gram's frequency from the new frequency effectively ignores normal uses of language which do not relate to pun language. The value of the exponent introduces a trade off between phonetic similarity and frequency. The frequencies of certain n-grams are so high that if n is too low, even words with very little phonetic similarity will score high using this method. In our experiments, an optimal value of 10 was found for this trade off.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Heterographic Puns", |
|
"sec_num": "3" |
|
}, |
|
{ |
|
"text": "Tto classify a context as a pun or non pun, Idiom Savant finds the maximum score from all possible n-gram pairs. If the maximum score found exceeds a threshold value, the context is classified as a pun.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Binary Classification", |
|
"sec_num": "3.1" |
|
}, |
|
{ |
|
"text": "Finding the correct threshold value to accurately classify contexts is discussed below in the Experiments and Results section.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Binary Classification", |
|
"sec_num": "3.1" |
|
}, |
|
{ |
|
"text": "By maximizing the score when replacing all potential lexical units, the system also produces a candidate word. Whichever replacement word used to produce the top n-gram pair is returned as the candidate word. The system only examines the last two ngrams. Those grams, the system annotates the POS tag and only the content wordsnouns, verbs, adverbs and adjectives-are considered as candidate words. The system uses a fall back by choosing the last word in the context when no adequate substitution is found.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Locating Pun Word", |
|
"sec_num": "3.2" |
|
}, |
|
{ |
|
"text": "Subtask 3 introduces an added difficulty with regards to heterographic puns. The system needs to correctly identify the two senses involved of pun, which is based on the accuracy of selecting target words. The system produce a ranked list of n-gram pairs using single word substitution. The highest ranked pair then contains the new or replaced word with which we search for a sense in WordNet (Fellbaum, 1998). For this particular task, the pun word are already given, so the system chooses only the n-grams which contain this word, and only needs to replace this word in order to produce pairs.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Annotating senses for pun meanings", |
|
"sec_num": "3.3" |
|
}, |
|
{ |
|
"text": "Once both words are found, we apply the semantic similarity measure akin to the one used in our systems approach to homographic puns described in Section 4. Both the original and target word is compared to a list of wordnet glosses corresponding to the senses available for each word. Idiom Savant uses Word2Vec cosine similarity between the words and their sense glosses to choose the best sense key.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Annotating senses for pun meanings", |
|
"sec_num": "3.3" |
|
}, |
|
{ |
|
"text": "\"Tom Swifty\" (Lessard and Levison, 1992) is one type of pun often found in the test data set. An example found is \" It's March 14th, Tom said piously\". Such puns frequently use adverbs to introduce the contextual ties inherent in heterographic puns. Despite that, most of these adverbs occurred in the test data set show little connection with their contexts, rather they are specifically used for ironic purpose. As such, our system did not adequately recognize these instances, so we designed a separate procedure for these cases. To flag whether a pun might be of a Tom Swifty type, the system uses a Part of Speech tagger from NLTK (Bird, 2006) and also analyses the suffixes of the last word in the context (for example, words ending in \"ly\").", |
|
"cite_spans": [ |
|
{ |
|
"start": 13, |
|
"end": 40, |
|
"text": "(Lessard and Levison, 1992)", |
|
"ref_id": "BIBREF7" |
|
}, |
|
{ |
|
"start": 636, |
|
"end": 648, |
|
"text": "(Bird, 2006)", |
|
"ref_id": "BIBREF0" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Tom Swifties", |
|
"sec_num": "3.4" |
|
}, |
|
{ |
|
"text": "With relation to tasks 1, an amalgamation of this approach and the original is performed. If the highest score does not exceed the threshold, we check to see if the pun is of type Tom Swifty. If this is the case, then we mark the context as a pun. Task 2 operates similarly -if the pun is flagged as a Tom Swifty, then the last adverb is returned as a candidate. For task 3 however, we need to transform the adverb into the intended word in order to get the appropriate sense entry in WordNet.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Tom Swifties", |
|
"sec_num": "3.4" |
|
}, |
|
{ |
|
"text": "To do so we build two prefix trees: one is a phonetic prefix tree based on CMU pronunciation dictionary; the other is a string prefix tree, to cover the exception cases where the adverb is not present in the CMU. If the word is in the phonetic prefix tree, the program returns all words which share at least two common prefix phonemes. For example, given the adverb \"punctually\", the words \"puncture\", \"punk\", \"pun\" and so on will be returned as candidates. If the string prefix tree is used, the program returns words which share at least the first three characters found in th input word. For the word \"dogmatically\", \"dogmatic\", \"dogma\", and \"dog\" will be returned as candidates. The list of such candidates is then used to replace the ngrams in which they occur, and the new ngram pairs are ranked according to the metric described at the beginning of 3. The highest scoring prefix is then used to search the appropriate WordNet sense tags.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Tom Swifties", |
|
"sec_num": "3.4" |
|
}, |
|
{ |
|
"text": "Since polysemous words have identical spelling but different meanings, detecting homographic puns is solely dependent on context information. Following double grounding theory, if the i th word of input sentence W = w 1:n , has a higher possibility to be the punning word, two senses of w i should infer a higher similarity score with two different components in its context c i = w 1:i\u22121,i+1:n . In the baseline model we design, the pun potential score of a word w i is computed as the sum of cosine similarities between the word w i and every word in context w j \u2208 c i , using distributed representation Word2Vec (Mikolov et al., 2013) . The word with highest score is returned as the punning word.", |
|
"cite_spans": [ |
|
{ |
|
"start": 615, |
|
"end": 637, |
|
"text": "(Mikolov et al., 2013)", |
|
"ref_id": "BIBREF8" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "Furthermore, as additional context information, w i were replaced with set of gloss information ex-tracted from its different senses, noted as g i , obtained from WordNet. While calculating similarity between g i and c i , two different strategies were employed. In the first strategy, the system computes similarities between every combination of g i and c i , and sum of similarity scores is the score for w i . In the second strategy, similarity score were calculated between g i and g j , the gloss of w j \u2208 c i . In most of the cases, pun words and their grounding words in the context do not share the same part-of-speech (POS) tags. In the latter strategy, we added a POS damping factor, noted as p ij of 0.2 if the POS tags of w i and w j are equal. Following Optimal Innovation hypothesis, the similarity of a punning word and its grounding word should neither be too high or too low in order to evoke the non-literal meaning. We applied following correction on computed similarities.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "f ws (x) = 0 x < 0.01 1 \u2212 x x >= 0.01", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "In puns, punning words and grounding words in context are often not adjacent. Thus the system does not consider the adjacent words of the candidate word. The system also ignored stopwords offered by NLTK. We noticed that words with high frequency other than stopwords overshadow low frequency words since every word with high frequency poses certain similarity score with every other phrases. Thus we added a frequency damping factor(f ij ) of 0.1 to the score for whose words have frequencies more than 100 in Brown Corpus (Francis and Kucera, 1979) . The final scoring function is shown as follows.", |
|
"cite_spans": [ |
|
{ |
|
"start": 537, |
|
"end": 550, |
|
"text": "Kucera, 1979)", |
|
"ref_id": "BIBREF4" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "score(W, i) = n j=1 p ij f ij l k=1 q m=1 f ws ( g k g m |g k ||g m | )", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "n is the number of words in c i and l and q is number of senses of w i and w j . g k and g m are gloss of the k th sense and m th sense of w i and w j respectively. For task 3, in order to obtain the sense keys of intended meaning from Wordnet, we chose the top two glosses of the pun word based on similarity score between gloss and word in context. For adding more context, instead of comparing only with words in context, we performed similarity measurement among the glosses.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "For subtask 1, for each word we calculated similarity with other words and we averaged the top two similarity score. We have considered a word as a pun if the average score is more than threshold of 0.6, which we chose empirically after observing a number of examples. For subtask 3, we chose the top two senses of the word ranked by the gloss similarity as candidate senses of punned word. The experiment results for the heterographic pun subtasks are shown in Table 5 .1. For subtask 1, the baseline infrequent quadgram is created: if a pun contains no infrequent quadgrams, which have a frequency less than 150 in Ngram corpus, then it is labeled as a non pun. The system uses trigram in subtask 1 because it is computationally feasible to search the ngram space, whilst still being representative of typical uses of language. We set a balanced threshold value of \u221214 by observing the first 200 samples in the test set.", |
|
"cite_spans": [], |
|
"ref_spans": [ |
|
{ |
|
"start": 462, |
|
"end": 469, |
|
"text": "Table 5", |
|
"ref_id": null |
|
} |
|
], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "The high precision score indicates the underlying mechanism behind such puns: a mutation of a typical use of language needs to take place. However the recall for this baseline is poor. A large portion of puns de facto use frequent language usages as targets for linguistic perversion, which this baseline method fails.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "Our system outperforms the baseline about five percentage of F-score. The largest factor regarding improper classifications of our model is false positives. Not all infrequent uses of language are heterographic puns. Idiom Savant's technique would sometimes misread a context, modify an infrequent trigram that was not the source of a pun to produce a much more frequent trigram. These false positives are the result of the enormous amount of possible uses in the English language. Infrequent yet \"normal\" trigrams are an important caveat when using frequency based techniques such as Idiom Savant. Hence we see the differ-ence between our model and the simple baseline: although the puns that were detected were very precise, the baseline failed to detect more subtle puns, where normal uses of language are still using phonetic translations to introduce ambiguity.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "For subtask 2, Idiom Savant uses quadgrams to produce the scores. This is possible because the system employs a number of methods to reduce the search space created when attempting to replace quadgrams. Firstly, the system won't search the Tom Swifty puns in ngrams corpus. Analysing the first 200 samples in the test data, which is not Tom Swifty puns, we found that roughly half all pun words are the last words in the context. Using this method on the whole corpus produced the LastWord baseline seen above. When expanding that to quadgrams and thus enlarging the window, an even greater ratio presents itself. Of the same 200 samples, three fourth of punning words are present in the last quadgram. In the gold standard, ninety percent of pun words appear in the last quadgram. We apply the same scoring technique as described above and achieved the performance presented in the table. We find an increase of 13% as compared to the last word baseline across the board.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "To create a baseline for subtask 3, we followed the approach described in (Miller and Gurevych, 2015) . and choose the top WordNet senses for each word selected as pun word. As WordNet ranks each sense with their associated frequency of usage, the baseline simply selects the most frequent sense for the pun word and replaced word respectively. As the replaced word are produced by the system, the possibility of error even with the baseline approach is affected by the accuracy of previous steps. When an incorrect word is produced, the sense key attached is by default incorrect and thus the precision, recall, and F scores suffer. The baseline outperforms our system to choose the best sense keys by approximately 6 percentage points. Our method involves Word2Vec is insufficient for solving this subtask, which is evidently much more difficult than the previous subtasks.", |
|
"cite_spans": [ |
|
{ |
|
"start": 74, |
|
"end": 101, |
|
"text": "(Miller and Gurevych, 2015)", |
|
"ref_id": "BIBREF9" |
|
} |
|
], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Puns", |
|
"sec_num": "4" |
|
}, |
|
{ |
|
"text": "For homographic pun processing, we participated in subtask 2 and 3. We calculated scores of subtask 1 on test data after task. For subtask 1, our system achieves 0.84 F-score, which outperforms the all positive baseline. For subtask 2, our system achieves 0.66 F-score. We observed that our system performed well on long sentences. However, for short sentences, most frequent word in the sentence were selected as pun word. This may be caused by lack of context.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Pun Processing", |
|
"sec_num": "5.2" |
|
}, |
|
{ |
|
"text": "Our system does not perform well on subtask 3 as it could not pick the apt sense intended in the pun. We noticed that the system can not pinpoint the apt senses whose glosses are not long enough. We introduced Idiom Savant, a computational system that capable of classifying and analyzing heterographic and homographic puns. We show that using n-grams in combination with the CMU dictionary can accurately model heterographic pun. There are however a number of drawbacks to this approach. We hypothesize that using a larger corpus would increase the performance of heterograhic pun processing. And we may combine different length grams to search for these idiomatic uses of language, which would more accurately model how human recognizes heterographic puns. Furthermore, the system has no means of checking whether the candidate words offered up by Idiom Savant are correlated to the rest of the context. Our system suffers intensely for short sentences and short gloss information, since Word2Vec doesn't offer context information.", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "Homographic Pun Processing", |
|
"sec_num": "5.2" |
|
}, |
|
{ |
|
"text": "http://www.speech.cs.cmu.edu/cgi-bin/ cmudict", |
|
"cite_spans": [], |
|
"ref_spans": [], |
|
"eq_spans": [], |
|
"section": "", |
|
"sec_num": null |
|
} |
|
], |
|
"back_matter": [], |
|
"bib_entries": { |
|
"BIBREF0": { |
|
"ref_id": "b0", |
|
"title": "NLTK: The Natural Language Toolkit", |
|
"authors": [ |
|
{ |
|
"first": "Steven", |
|
"middle": [], |
|
"last": "Bird", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 2006, |
|
"venue": "Proceedings of the COLING/ACL 2006 Interactive Presentation Sessions", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "69--72", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Steven Bird. 2006. NLTK: The Natural Language Toolkit. In Proceedings of the COLING/ACL 2006 Interactive Presentation Sessions. Association for Computational Linguistics, Sydney, Australia, pages 69-72.", |
|
"links": null |
|
}, |
|
"BIBREF1": { |
|
"ref_id": "b1", |
|
"title": "Web 1t 5-gram version 1. Linguistic Data Consortium", |
|
"authors": [ |
|
{ |
|
"first": "Thorsten", |
|
"middle": [], |
|
"last": "Brants", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Alex", |
|
"middle": [], |
|
"last": "Franz", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 2006, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Thorsten Brants and Alex Franz. 2006. Web 1t 5-gram version 1. Linguistic Data Consortium .", |
|
"links": null |
|
}, |
|
"BIBREF2": { |
|
"ref_id": "b2", |
|
"title": "WordNet: An Electronic Lexical Database", |
|
"authors": [], |
|
"year": 1998, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Christiane Fellbaum, editor. 1998. WordNet: An Elec- tronic Lexical Database. Massachusetts Institute of Technology.", |
|
"links": null |
|
}, |
|
"BIBREF3": { |
|
"ref_id": "b3", |
|
"title": "Humor through double grounding: Structural interaction of optimality principles", |
|
"authors": [ |
|
{ |
|
"first": "Kurt", |
|
"middle": [], |
|
"last": "Feyaerts", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Geert", |
|
"middle": [], |
|
"last": "Br\u00f4ne", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 2002, |
|
"venue": "Odense Working Papers in Language and Communication", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "312--336", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Kurt Feyaerts and Geert Br\u00f4ne. 2002. Humor through double grounding: Structural interaction of optimal- ity principles. Odense Working Papers in Language and Communication (23):312-336.", |
|
"links": null |
|
}, |
|
"BIBREF4": { |
|
"ref_id": "b4", |
|
"title": "Brown corpus manual", |
|
"authors": [ |
|
{ |
|
"first": "W", |
|
"middle": [], |
|
"last": "", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Nelson", |
|
"middle": [], |
|
"last": "Francis", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Henry", |
|
"middle": [], |
|
"last": "Kucera", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1979, |
|
"venue": "", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "W. Nelson Francis and Henry Kucera. 1979. Brown corpus manual. Brown University .", |
|
"links": null |
|
}, |
|
"BIBREF5": { |
|
"ref_id": "b5", |
|
"title": "Understanding figurative and literal language: The graded salience hypothesis", |
|
"authors": [ |
|
{ |
|
"first": "Rachel", |
|
"middle": [], |
|
"last": "Giora", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1997, |
|
"venue": "Cognitive Linguistics (includes Cognitive Linguistic Bibliography)", |
|
"volume": "8", |
|
"issue": "", |
|
"pages": "183--206", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Rachel Giora. 1997. Understanding figurative and literal language: The graded salience hypothesis. Cognitive Linguistics (includes Cognitive Linguistic Bibliography) 8(3):183-206.", |
|
"links": null |
|
}, |
|
"BIBREF6": { |
|
"ref_id": "b6", |
|
"title": "Optimal innovation and pleasure", |
|
"authors": [ |
|
{ |
|
"first": "Rachel", |
|
"middle": [], |
|
"last": "Giora", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 2002, |
|
"venue": "Processing of The April Fools Day Workshop on Computational Humour. Citeseer", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "11--28", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Rachel Giora. 2002. Optimal innovation and plea- sure. In Stock, O., Strapparva, C. and A. Nijholt (eds.) Processing of The April Fools Day Workshop on Computational Humour. Citeseer, pages 11-28.", |
|
"links": null |
|
}, |
|
"BIBREF7": { |
|
"ref_id": "b7", |
|
"title": "Computational modelling of linguistic humour: Tom swifties", |
|
"authors": [ |
|
{ |
|
"first": "Greg", |
|
"middle": [], |
|
"last": "Lessard", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Michael", |
|
"middle": [], |
|
"last": "Levison", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1992, |
|
"venue": "ALLC/ACH Joint Annual Conference", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "175--178", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Greg Lessard and Michael Levison. 1992. Computa- tional modelling of linguistic humour: Tom swifties. In ALLC/ACH Joint Annual Conference, Oxford. pages 175-178.", |
|
"links": null |
|
}, |
|
"BIBREF8": { |
|
"ref_id": "b8", |
|
"title": "Distributed representations of words and phrases and their compositionality", |
|
"authors": [ |
|
{ |
|
"first": "Tomas", |
|
"middle": [], |
|
"last": "Mikolov", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Ilya", |
|
"middle": [], |
|
"last": "Sutskever", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Kai", |
|
"middle": [], |
|
"last": "Chen", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Greg", |
|
"middle": [ |
|
"S" |
|
], |
|
"last": "Corrado", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Jeff", |
|
"middle": [], |
|
"last": "Dean", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 2013, |
|
"venue": "Advances in neural information processing systems", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "3111--3119", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Cor- rado, and Jeff Dean. 2013. Distributed representa- tions of words and phrases and their compositional- ity. In Advances in neural information processing systems. pages 3111-3119.", |
|
"links": null |
|
}, |
|
"BIBREF9": { |
|
"ref_id": "b9", |
|
"title": "Automatic disambiguation of english puns", |
|
"authors": [ |
|
{ |
|
"first": "Tristan", |
|
"middle": [], |
|
"last": "Miller", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Iryna", |
|
"middle": [], |
|
"last": "Gurevych", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 2015, |
|
"venue": "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing", |
|
"volume": "1", |
|
"issue": "", |
|
"pages": "719--729", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Tristan Miller and Iryna Gurevych. 2015. Automatic disambiguation of english puns. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). Association for Computa- tional Linguistics, Beijing, China, pages 719-729.", |
|
"links": null |
|
}, |
|
"BIBREF10": { |
|
"ref_id": "b10", |
|
"title": "SemEval-2017 Task 7: Detection and interpretation of English puns", |
|
"authors": [ |
|
{ |
|
"first": "Tristan", |
|
"middle": [], |
|
"last": "Miller", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Christian", |
|
"middle": [ |
|
"F" |
|
], |
|
"last": "Hempelmann", |
|
"suffix": "" |
|
}, |
|
{ |
|
"first": "Iryna", |
|
"middle": [], |
|
"last": "Gurevych", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 2017, |
|
"venue": "Proceedings of the 11th International Workshop on Semantic Evaluation", |
|
"volume": "", |
|
"issue": "", |
|
"pages": "", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Tristan Miller, Christian F. Hempelmann, and Iryna Gurevych. 2017. SemEval-2017 Task 7: Detec- tion and interpretation of English puns. In Proceed- ings of the 11th International Workshop on Semantic Evaluation (SemEval-2017).", |
|
"links": null |
|
}, |
|
"BIBREF11": { |
|
"ref_id": "b11", |
|
"title": "The pun in advertising: A pragmatic approach", |
|
"authors": [ |
|
{ |
|
"first": "Keiko", |
|
"middle": [], |
|
"last": "Tanaka", |
|
"suffix": "" |
|
} |
|
], |
|
"year": 1992, |
|
"venue": "Lingua", |
|
"volume": "87", |
|
"issue": "1", |
|
"pages": "91--102", |
|
"other_ids": {}, |
|
"num": null, |
|
"urls": [], |
|
"raw_text": "Keiko Tanaka. 1992. The pun in advertising: A prag- matic approach. Lingua 87(1):91 -102.", |
|
"links": null |
|
} |
|
}, |
|
"ref_entries": { |
|
"TABREF1": { |
|
"text": "", |
|
"content": "<table><tr><td>: The precision, recall, and F-score value</td></tr><tr><td>of heterographic pun subtasks</td></tr></table>", |
|
"type_str": "table", |
|
"html": null, |
|
"num": null |
|
}, |
|
"TABREF3": { |
|
"text": "The precision, recall, and F-score value of homographic pun processing subtasks", |
|
"content": "<table><tr><td>6 Concluding Remarks</td></tr></table>", |
|
"type_str": "table", |
|
"html": null, |
|
"num": null |
|
} |
|
} |
|
} |
|
} |