Danish in Wikidata Lexemes

Danish in Wikidata Lexemes

Danish in Wikidata lexemes Finn Arup˚ Nielsen Cognitive Systems, DTU Compute, Technical University of Denmark Kongens Lyngby, Denmark Abstract 2 Wikidata lexemes Wikidata introduced support for lexico- Wikidata stores lexeme data on a new type of pages graphic data in 2018. Here we describe the prefixed with the letter `L' and further identified lexicographic part of Wikidata as well as with an integer, e.g., the Danish lexeme gentagelse experiences with setting up lexemes for the (repetition) has the identifier \L117" and available Danish language. We note various possible for view and edit at https://www.wikidata.org/ annotations for lexemes as well as discuss wiki/Lexeme:L117. On the same page, multiple various choices made. senses and forms for the lexeme may be defined. 1 Introduction They are identified by suffixes to the lexeme iden- tifier, e.g., the plural indefinite form gentagelser Wikipedia's structured sister Wikidata (Vrandeˇci´c would be identified as \L117-F3", while the first and Kr¨otzsch, 2014) at https://www.wikidata. sense|if it was defined|would have been identi- org/ supports interlinking different language ver- fied as \L117-S1". Forms and senses are defined sions of Wikipedia as well as several other Wikime- separately, so it is currently difficult to define a dia sites, such as Wikibooks and Wikimedia Com- specific sense for a specific form. Lexemes, forms mons. One wiki that has been missing from the list and senses may be associated with properties, and is Wiktionary, | the dictionary wiki. Wiktionary these properties are identified with integer prefixed has a structure different from the other wikis as with the letter `P'. multiple different words and concepts might be de- The Wikidata lexeme data maps to an RDF scribed on the same page, only connected through representation,2 and the RDF data is queryable the same orthographic representation. via the Wikidata Query Service SPARQL end- In 2018, Wikidata enabled support for lexico- point at https://query.wikidata.org/. The graphic data via special lexeme wiki pages. Com- mapping uses part of the Lexicon Model for On- pared to Wiktionary, Wikidata lexemes offer a so- tologies (LEMON) ontology (Cimiano et al., 2016; lution with directly machine-readable data: it is McCrae et al., 2012). The central OWL con- not necessary to write parsers to obtain the lex- cepts for the lexeme data are ontolex:LexicalEntry, eme data in a structured format. Wikidata lex- ontolex:Form and ontolex:LexicalSense for lex- emes also reduce the amount of redundant in- eme, form and sense respectively with the prefix put: In Wiktionary, each language edition sets http://www.w3.org/ns/lemon/ontolex#. Each up its own dictionary, and a word described in of these three OWL concepts has associated ba- one Wiktionary is not directly available in another sic data in Wikidata. Apart from the identifier, Wiktionary. Further issues with Wiktionary are the lexeme has the lemma, language and lexical the linkage to the Wikidata concept ontology and category, the form has its orthographic representa- the linkage to external resources such as WordNet tion and grammatical features while the sense may (Miller, 1995). Neither of these links is non-trivial have multiple glosses. This basic data cannot be to set up, though matching lexical entries between associated with qualifiers and references like nor- Wiktionary and WordNet may be done with good mal Wikidata properties. accuracy (McCrae et al., 2012). Links from Wikidata lexemes (L-pages) to Q- Below we will describe how lexemes are sup- items (i.e., the ordinary Wikidata items) are of two 1 ported on Wikidata, and list some of the Danish kinds: Either for the description of the lexical and resources relevant for Wikidata lexemes. Then we grammatical \metadata" for the lexeme or for the will detail how Danish lexemes have been anno- description of the meaning of a sense. In the latter tated and discuss some of the choices made. case, the Q-items function as the wordnet notion 1There is an introduction to Wikidata lexemes on Wikidata itself at https://www.wikidata.org/wiki/ 2https://www.mediawiki.org/wiki/Extension: Wikidata_talk:Lexicographical_data. WikibaseLexeme/RDF_mapping Danish Total Description SPARQL query fragment 1268 43816 Number of lexemes [] a ontolex:LexicalEntry 4826 118742 Number of forms [] a ontolex:Form 617 11194 Number of sense [] a ontolex:LexicalSense 8594 218803 Number of grammatical feature links [] wikibase:grammaticalFeature [] Table 1: Statistics for lexeme data in Wikidata. See also the statistics displayed on the Ordia website at https://tools.wmflabs.org/ordia/statistics/. of synsets. Wikidata has specific properties to link the Danish part of the Europarl corpus (Koehn, Q-items to synsets in external lexical resources, 2005). Fairy tales by Hans Christian Andersen can including BabelNet (Navigli and Ponzetto, 2010) be found with modern spelling. (P2581) and the Collaborative Interlingual Index Of the lexicographical resources, the standard (P5063)(Bond et al., 2016). Alternatively, the Danish dictionary, Retskrivningsordbogen, has a re- more generic property for Linked Open data URIs strictive license. Another large Danish dictionary (P2888) can be used. Wikidata has linked some with over 300'000 entries and used, e.g., with the WordNet synsets used in ImageNet. The corre- computer program aspell, is under the GNU Gen- spondence between the resources is not necessarily eral Public License and is not compatible with straightforward to establish (Nielsen, 2018). Wikidata's CC0. DanNet (Pedersen et al., 2009) Some statistics for the lexeme data in Wikidata has a WordNet-derived open license and a Wiki- are displayed in Table1. It displays, e.g., that the data property (P6140) for the DanNet words | number of forms is close to 120'000. In compari- corresponding to Wikidata lexemes|has been cre- son, the English Wiktionary has currently around ated in November 2018. DanNet is distributed as 5.9 million content pages, while the Danish Wik- OWL, so should fit well with Wikidata lexemes. tionary has around 38 thousand.3 The numbers NST Lexical database for Danish4 has Speech are not directly comparable as multiple forms may Assessment Methods Phonetic Alphabet (SAMPA) be listed on one Wiktionary content page. A count pronunciation specification for over 235'000 Danish on the distinct number of (monolingual) form rep- words and stated to have the CC0 license. resentations in Wikidata gives 89'728 on 27 March As of June 2019, we have used 160 sentences 2019 based on the following SPARQL query: from the Danish part of the Europarl corpus,5 and 6 SELECT linked to 1258 DanNet 2.2 word identifiers, while (COUNT(DISTINCT(?representation)) the NST phonetic data has hardly been used. AS ? count ) { [] ontolex:representation 4 Annotating lexemes, forms and ?representation . } senses 3 Danish resources Wikidata has a continuously growing number of properties that can be used to annotate lexemes, There are some Danish resources relevant for Wiki- forms and senses. General properties|that are rel- data lexemes, e.g., corpora for language usage ex- evant for lexemes of most word classes|are usage amples. As Wikidata is distributed under the Cre- example (P5831), word stem (P5187) and derived ative Commons Zero (CC0) license, the resources from (P5191), where the latter may indicate et- incorporated into Wikidata need to be compatible ymological origin or origin of derivations. Com- with that license. pound parts may be linked with a property (P5238) Old out-of-copyright Danish works are typically and the order of the parts may be specified with a with an antiquated spelling, e.g., where the first property used as a qualifier (P1545). The Wikidata letter of nouns has a capital letter. Wikipedia and property for DanNet words (P6140) are linked to Wiktionary may not be used because their content version 2.2 of the resource. As of March 2019, 844 is under an attribution and share-alike license, not lexemes with associated information about DanNet compatible with the CC0 license. Modern Dan- words are linked.7 The data model of Wikidata al- ish sentences can be retrieved from, e.g., Danish 4 https://www.nb.no/sprakbanken/show?serial= law texts at https://www.retsinformation.dk/, sbr-26 Danish translations of international treaties and 5See Ordia's statistics at https://tools.wmflabs. conventions, such as the Treaty of Lisbon, and org/ordia/reference/Q5412081 6The SPARQL query SELECT ?dannet f ?lexeme 3 https://en.wiktionary.org/wiki/Special: wdt:P6140 ?dannet g on the Wikidata Query Service. Statistics and https://da.wiktionary.org/wiki/ 7https://www.wikidata.org/wiki/Property_ Speciel:Statistik talk:P6140 displays the DanNet property statistics. lows for the specification of \no value", thus it is 4.3 Images and audio possible to specify that a lexeme cannot be found Senses may be associated with images by referenc- in the DanNet 2.2 resource. For instance, adverbs ing filenames in the free media archive Wikimedia and rare nouns, such as lommevogn (L40687), are Commons. The link may help language learners not in DanNet and indicated as such. The usage and possibly be a resource for training natural lan- example property (P5831) can store a short free- guage processing machine learning models in the form text and the qualifier stated in (P248) can same way that ImageNet has used WordNet, see point to a Q-item with metadata about a work (Nielsen, 2018; Nielsen and Hansen, 2018) for ap- where the text appears. A related property is at- plications of the use of Wikidata. Typically the tested in (P5323) which also can point to a Q-item. senses of nouns may be associated with images, Lexemes may also be associated with classes via while it may be difficult to identify good images the instance of property (P31).

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us