<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="374"/><title>UCD-PN: Classification of Semantic Relations Between Nominals using WordNet and Web Counts</title><pubinfo>Proceedings of the 4th International Workshop on Semantic Evaluations (SemEval-2007),pages 374-377, Prague, June 2007. ©2007 Association for Computational Linguistics</pubinfo><author surname="Nulty" givenname="Paul"><org  name="University College Dublin" country="Ireland" city="Dublin"/></author></firstpageheader><frontmatter><p><b>UCD-PN: Classification of Semantic Relations Between Nominals using WordNet and Web Counts</b></p><p><b>Paul Nulty</b></p><p>School of Computer Science and Informatics University College Dublin Dublin, Ireland</p><p>paul.nulty@ucd.ie</p></frontmatter><abstract>For our system we use the SMO implemen­tation of a support vector machine provided with the WEKA machine learning toolkit. As with all machine learning approaches, the most important step is to choose a set of features which reliably help to predict the label of the example. We used 76 features drawn from two very different knowledge sources. The first 48 features are boolean values indicating whether or not each of the nominals in the sentence are linked to cer­tain other words in the WordNet hypernym and meronym networks. The remaining 28 features are web frequency counts for the two nominals joined by certain common prepositions and verbs. Our system per­formed well on all but two of the relations; theme-tool and origin entity. </abstract></header><body><section number="1" title="Introduction and Related Work"><p>This paper describes a system for participating in SemEval 2007 task 4; "Classification of Seman­tic Relations Between Nominals". This SemEval task required systems to establish whether or not a particular semantic relation held between two nominals in a sentence. There were 7 semantic re­lations, with approximately 70 positive and 70 negative example sentences for each relation. There were approximately 70 examples in the test sets for each relation.</p><p>This task is similar to the problem of determin­ing what semantic relation holds between the constituents of a noun-noun compound. Work in this area has used both statistical information about the frequencies of lexical patterns and hand-built knowledge databases such as WordNet and the­saura. In our system we combine these two knowl­edge sources and build a set of features to use as input to a Support Vector Machine learning algo­rithm.</p><p>The use of hit counts from web search engines to obtain lexical information was introduced by Turney (2001). The idea of searching a large cor­pus for specific lexico-syntactic phrases to indicate a semantic relation of interest was first described by Hearst (1992). A lexical pattern specific enough to indicate a particular semantic relation is usually not very frequent, and using the web as a corpus alleviates the data sparseness problem. However, it also introduces some problems. The number of results returned is unstable as pages are created and deleted all the time, and the major search engines return only rounded frequency estimates and do not allow a very sophisticated query interface. Na-kov and Hearst (2005) examined the use of web-based n-gram frequencies for an NLP task and concluded that these issues do not greatly impact the interpretation of the results.</p><p>Turney and Littman (2005) use web queries to the AltaVista search engine as the basis for their system to assign semantic relations to modifier-noun phrases. They use a set of 64 short preposi­tional and conjunctive phrases (joining terms) to generate exact queries of the form <i>"noun joining term modifier", </i>and <i>"modifier joining term nouri\ </i>Using 64 joining terms and trying the noun and modifier in either order resulted in a vector of 128 hit counts for each noun-modifier pair.<page local="2" global="375"/> These hit counts were used with a supervised (nearest neighbor) algorithm to label the modifier-noun phrases.</p><p>Nakov and Hearst (2006) use queries of the form <i>"noun that * modifier" </i>where '*' is a wildcard operator. By retrieving the words that most commonly occurred in the place of the wildcard they were able to identify very specific predicates that are likely to represent the relation between noun and modifier.</p><p>There have also been several approaches which used hand built knowledge sources. Rosario and Hearst (2001) used MeSH, a lexical hierarchy of medical terms. They use this hierarchy to assign semantic properties to head and modifier words in the medical domain. They use a neural network trained on these attributes to assign the noun phrases a semantic relation.</p><p>Nastase and Szpakowicz (2003) use the position of the noun and modifier words within general se­mantic hierarchies (Roget's Thesaurus and Word­Net) as attributes for their learning algorithms. They experiment with decision trees, a rule induc­tion system, a relational learner and memory based learning. They conclude that the rule induction system is capable of generalizing to characterize the noun phrases.</p><p>Moldovan et al (2004) also use WordNet. They experiment with a Bayesian algorithm, decision trees, and their own algorithm; semantic scattering. As far as we are aware ours is the first system to combine features derived from a hand-built lexical database with corpus frequencies of lexical patterns.</p></section><section number="2" title="System Description 2.1 WordNet Features"><p>Our system uses both features derived from WordNet and features obtained by collecting web frequencies for lexical patterns. We did not use any information from the sentence in which the two nominals appeared, nor did we use the query used to retrieve the examples. We did make use of the WordNet sense for the features we obtained from</p><p>WordNet.</p><p>There are 48 features derived from WordNet. Most of these are boolean values indicating whether or not each of the nominals in the sentence appear below certain other high-level concepts in the hypernym hierarchy. We chose 22 high level concepts we believed may be good predictors of whether or not a nominal could be an argument of the semantic relations used in this task. These concepts are listed below in table 1.</p><p>For each of these WordNet entries we checked whether or not each of the nominals in the example sentence appeared below the entry in the WordNet hypernym tree. This gave us 44 features. We also checked whether the first nominal was a hypernym of the second; and vice-versa; and whether the first nominal was a meronym of the second; and vice versa. This gives us in total 48 boolean features derived from WordNet.</p><subsection number="2.2" title="Web Frequencies"><p>The remaining features were numerical values obtained by retrieving the frequencies of web searches for the two nominals joined by certain common prepositions and verbs. These joining terms are listed below in table 2.</p><table caption="Table 1. Concepts in the WordNet hierarchy used to generate features." class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>physicalentity grouping</p></td><td class="cell"><p>physical_object substance</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>attribute</p></td><td class="cell"><p>matter</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>psychological_feature quantity container</p></td><td class="cell"><p>process causal_agent tool</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>act</p></td><td class="cell"><p>device</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>work</p></td><td class="cell"><p>content</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>being</p></td><td class="cell"><p>event</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>natural_object instrumentation</p></td><td class="cell"><p>unit state</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 2. Joining terms used to generate features." class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>of</p></td><td class="cell"><p>produces</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>for</p></td><td class="cell"><p>used for</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>in</p></td><td class="cell"><p>has</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>on</p></td><td class="cell"><p>contains</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>at</p></td><td class="cell"><p>from</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>with</p></td><td class="cell"><p>causes</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>about</p></td><td class="cell"><p>made from</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="3" global="376"/><p>To obtain the frequencies we used the API to the "MSN Live" search engine.</p><p>Choosing a set of joining terms in a principled manner is not an easy task, but there is certainly some correlation between a prepositional term or short linking verb and a semantic relation. For ex­ample, <i>"contains" </i>tends to indicate a spatial rela­tion, while the preposition <i>"in" </i>indicates a locative relation, either temporal or spatial.</p><p>When collecting web frequencies we took ad­vantage of the OR operator provided by the search engine. For each joining term, we wanted to sum the number of hits for the term on its own, the term followed by <i>'a', </i>and the term followed by <i>'the'. </i>In­stead of conducting separate queries for each of these forms, we were able to sum the results with just one search. For example, if the two nominals in the sentence were <i>"battery" </i>and <i>"phone"; </i>one of the queries would be:</p><p><i>"battery in phone" OR "battery </i>in <i>a phone" OR "battery in the phone"</i></p><p>These features were numeric values; the raw num­ber of documents returned by the query.</p></subsection><subsection number="2.3" title="Learning Algorithm"><p>All of the features were used as input to our learning algorithm, which was a Support Vector Machine (SVM). An SVM is a method for creating a classification function which works by trying to find a hypersurface in the space of possible inputs that splits the positive examples from the negative examples for each class. We did not normalize these values as normalization is handled by the WEKA implementation which we used.</p><p>WEKA is a machine learning toolkit written in Java (Witten and Frank, 1999). The algorithm we used was an SVM trained with the Sequential Minimal Optimization method provided by Weka.</p></subsection></section><section number="3." title="Results"><p>The average f-value obtained by our system using all of the training data was 65.4. There was a sig­nificant difference in performance across different relations. The results for each relation are below.</p><p><b>Relation</b></p><doubt alpha="66.7" length="15" tooSmall="False" monospace="0.0">Pre Rec   F Acc</doubt><p>The standard deviation of the f-values is 13.9. The average of the f-values is brought down by two of the relations; origin-entity and theme-tool. The poor performance of these relations was noted during early experimentation with the training data; and the list of WordNet concepts and joining terms was amended to try to improve classifica­tion, but no improvement was achieved. If the re­sults for these relations are omitted the average f-score rises to 73.6</p><subsection number="3.1" title="Information Gain"><p>In order to evaluate which features were the most useful for each relation, we used the Informa­tion Gain feature ranking tool in WEKA. This tool measures the change in entropy attributed to each feature and ranks them accordingly. In some cases we found that the high ranking features for a rela­tion were ones which were intuitively relevant to predicting that relation; however some features still had high Information Gain despite seeming unlikely to be predictive of the relation.</p><p>The eight most informative features for the Cause-Effect and Content-Container relations are shown below. WordNet features are in normal font; the joining terms for web searches in italics.<page local="4" global="377"/> The '2' after a feature indicates that the web search was of the form "N2 joining term N1"; or that the WordNet property holds for N2; where the relation is <i>relation</i>(N1,N2).</p><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>cause-effect</p></td><td class="cell"><p>61.7</p></td><td class="cell"><p>90.2</p></td><td class="cell"><p>73.3</p></td><td class="cell"><p>66.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>instrument-agency</p></td><td class="cell"><p>59.3</p></td><td class="cell"><p>84.2</p></td><td class="cell"><p>69.6</p></td><td class="cell"><p>64.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>product-producer</p></td><td class="cell"><p>70.9</p></td><td class="cell"><p>98.4</p></td><td class="cell"><p>82.4</p></td><td class="cell"><p>72.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>origin-entity</p></td><td class="cell"><p>51.4</p></td><td class="cell"><p>50.0</p></td><td class="cell"><p>50.7</p></td><td class="cell"><p>56.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>theme-tool</p></td><td class="cell"><p>52.9</p></td><td class="cell"><p>31.0</p></td><td class="cell"><p>39.1</p></td><td class="cell"><p>60.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>part-whole</p></td><td class="cell"><p>66.7</p></td><td class="cell"><p>69.2</p></td><td class="cell"><p>67.9</p></td><td class="cell"><p>76.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>content-container</p></td><td class="cell"><p>71.4</p></td><td class="cell"><p>78.9</p></td><td class="cell"><p>75.0</p></td><td class="cell"><p>73.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Average</p></td><td class="cell"><p>62.0</p></td><td class="cell"><p>71.7</p></td><td class="cell"><p>65.4</p></td><td class="cell"><p>67.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 3. The features with the highest information gain for cause-effect and content-container." class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Cause-Effect</b></p></td><td class="cell"><p><b>Content-Container</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>quantity</p></td><td class="cell"><p>Instrumentation2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>at</i></p></td><td class="cell"><p>Container2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>used for2</i></p></td><td class="cell"><p><i>contains</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>grouping</p><p>object2</p><p>substance</p></td><td class="cell"><p>physical_object2 physical_entity2 psychological_feature</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>substance2</p></td><td class="cell"><p>substance2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>instrumentation2</p></td><td class="cell"><p>device2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Most of these features make sense. For example, the search query "contains" and the Wordnet entry "Container" linked to the second noun are the sec­ond and third most informative for the content con­tainer class, and the query "N2 used for N1" ranks highly in the cause-effect relation. However, it is unclear why being a hyponym of "quantity" would provide information about the cause-effect relation.</p></subsection></section><section number="4" title="Conclusion and Future Work"><p>This paper describes a system for participating in SemEval 2007 task 4; "Classification of Semantic Relations Between Nominals". Our system com­bines features generated by analyzing the WordNet hypernym tree with features which indicate the frequencies of certain lexical patterns involving the nominals and common prepositions, using the web as a corpus.</p><p>The performance of the system was above the average score of other systems which used the WordNet sense of the training examples but not the query used to obtain them. The system was held back particularly by two relations, theme-tool and origin-entity.</p><p>There are many potential avenues for future work in this area. We chose 48 features based on Word-Net and 28 lexical patterns to search the web for. These were chosen arbitrarily on the basis that they looked like they would be informative in general, over all seven relations. A more principled ap­proach would be to begin with a much larger num­ber of features and use information gain to select the most informative features for <i>each relation in­dividually. </i>This should improve performance by ensuring that only the most relevant features for a specific relation are used to train the classifier for that relation.</p><p>Also, there is room for more investigation into how short prepositional joining phrases map onto un­derlying semantic relations (Girjiu 2006).</p></section><references><p>Roxana Girju. 2006. Out-of-context noun phrase seman­tic interpretation with cross-linguistic evidence. In <i>Proceedings of the 15th ACM international confer­ence on Information and knowledge management</i></p><p>Marti A. Hearst: 1992. Automatic Acquisition of Hypo-nyms from Large Text Corpora. <i>COLING:539-545</i></p><p>Dan Moldovan, Adriana Badulescu, Marta Tatu, Daniel Antohe and Roxana Girju. 2004. Models for the Se­mantic Classification of Noun Phrases. <i>In Proceed­ings of the HLT/NAACL Workshop on Computational Lexical Semantics. Boston , MA.</i></p><p>Preslav Nakov and Marti Hearst. 2006. Using Verbs to Characterize Noun-Noun Relations, <i>in the Proceed­ings of AIMSA 2006,</i></p><p>Preslav Nakov and Marti Hearst. 2005. Using the Web as an Implicit Training Set: Application to Structural</p><p>Ambiguity Resolution, <i>in HLT/EMNLP'05,</i></p><p>Vivi Nastase and Stan Szpakowicz. 2003. Exploring Noun-Modifier Semantic Relations. <i>International</i> <i>Workshop on Computational Semantics, Tillburg, Netherlands, 2003</i></p><p>Barbara Rosario and Marti A. Hearst. 2001. Classifying the semantic relations in noun compounds via a do­main-specific lexical hierarchy. <i>In Proceedings of the 2001 Conference on Empirical Methods in Natural Language Processing. ACL</i></p><p>Peter D. Turney. 2001. Mining the web for synonyms:</p><p>PM-IR vs LSA on TOEFL, <i>Proceedings of the</i> <i>Twelth European Conference on machine learning,</i></p><p>Peter D. Turney and Michael L. Littman. 2005. Corpus-based learning of analogies and semantic relations.</p><doubt alpha="45.5" length="33" tooSmall="False" monospace="0.0">Machine Learning, 60(1-3):251-278</doubt><p>Ian H. Witten and Eibe Frank. 1999. <i>Data Mining: Practical Machine Learning Tools and Techniques with Java Implementations, </i>Morgan Kaufmann (1999)</p></references></body></article>