![]() Harabagiu SM, Moldovan D, Paşca M, Mihalcea R, Surdeanu M, Bunescu R, Girju R, Rus V, Morarescu P (2000) FALCON: boosting knowledge for answer engines. In: Proceedings of the 13th conference of the European chapter of the association for computational linguistics, Avignon, France, 23–, pp 580–590 Gurevych I, Eckle-Kohler J, Hartmann S, Matuschek M, Meyer CM, Wirth C (2012) UBY – a large-scale unified lexical-semantic resource based on LMF. In: Proceedings of the 21st national conference on artificial intelligence, Boston, MA, 16–20 July 2006, pp 1301–1306 Gabrilovich E, Markovitch S (2006) Overcoming the brittleness bottleneck using Wikipedia: enhancing text categorization with encyclopedic knowledge. Data Min Knowl Disc 15(1):21–28įellbaum C (ed) (1998) WordNet: an electronic database. In: Proceedings of the 11th conference of the European chapter of the association for computational linguistics, Trento, Italy, 3–, pp 9–16ĭomingos P (2007) Toward knowledge-rich data mining. ![]() ![]() IOS, Amsterdamīunescu R, Paşca M (2006) Using encyclopedic knowledge for named entity disambiguation. J Web Semant 7(3):154–165īuitelaar P, Cimiano P, Magnini B (eds) (2005) Ontology learning from text: methods, evaluation and applications. In: Proceedings of the 23rd international conference on computational linguistics, Beijing, China, 23–, pp 37–45īizer C, Lehmann J, Kobilarov G, Auer S, Becker C, Cyganiak R, Hellmann S (2009) DBpedia – a crystallization point for the web of data. In: Proceedings of the 20th international joint conference on artificial intelligence, Hyderabad, India, 6–, pp 2670–2676īarrón-Cedeño A, Rosso P, Agirre E, Labaka G (2010) Plagiarism detection across distant language pairs. In: Proceedings of the 18th international joint conference on artificial intelligence, Acapulco, Mexico, 9–, pp 805–810īanko M, Cafarella MJ, Soderland S, Broadhead M, Etzioni O (2007) Open information extraction from the Web. In: Proceedings of the 17th international conference on computational linguistics and 36th annual meeting of the association for computational linguistics, Montréal, Québec, Canada, 10–īanerjee S, Pedersen T (2003) Extended gloss overlap as a measure of semantic relatedness. In: Proceedings of the 2nd international global WordNet conference, Brno, Czech Republic, 20–, pp 80–210īaker CF, Fillmore CJ, Lowe JB (1998) The Berkeley FrameNet project. In: Proceedings of the 12th conference of the European chapter of the association for computational linguistics, Athens, Greece, 30 March–3 April 2009, pp 33–41Ītserias J, Villarejo L, Rigau G, Agirre E, Carroll J, Magnini B, Vossen P (2004) The MEANING multilingual central repository. Synonyms.Agirre E, Soroa A (2009) Personalizing PageRank for Word Sense Disambiguation. Synset_id_list = retrieve_synset_id(term) Retlist =, 'b') for result in data if result = "HYPERNYM"] # Retrieve hypernyms, hyponyms and antonyms of a given BabelNet synset # Retrieve the IDs of the Babel synsets (concepts) denoted by a given word ![]() Targets = for result in data if result in concepts] Return(senses.get('simpleLemma'))ĭata = json.loads(response.text, 'utf-8') ![]() Response = requests.post(service_url, data=data) # Retrieve the information of a given synsetĭef retrieve_info_synset(id, x): # x = 'a': list of all lemmas, x = 'b': only the first lemma. KEY = 'KEY' # You can get 1000 babelcoins free This is the code that produces the problem, if you want to reproduce it. Consulting the docs, I found out that I can force it to use utf-8. Looking at previous related questions, I found out that I must open the file encoded in utf-8 but I'm working with the requests module. I managed to do that but it works only on certain lemmas and for others it throws this error: UnicodeEncodeError: 'charmap' codec can't encode character '☁' in position 646: character maps to. I want to retrieve the synonyms and hypernyms of a lemma using BabelNet API. ![]()
0 Comments
Leave a Reply. |