| 1 | # ABSTRACT: Driver for the Dutch tagset of the CoNLL 2006 Shared Task (derived from the Alpino tagset). | ||
| 2 | # Copyright © 2011, 2015, 2017 Dan Zeman <zeman@ufal.mff.cuni.cz> | ||
| 3 | # Copyright © 2011 Zdeněk Žabokrtský <zabokrtsky@ufal.mff.cuni.cz> | ||
| 4 | |||
| 5 | package Lingua::Interset::Tagset::NL::Conll; | ||
| 6 | use strict; | ||
| 7 | use warnings; | ||
| 8 | our $VERSION = '3.015'; | ||
| 9 | |||
| 10 | use utf8; | ||
| 11 | use open ':utf8'; | ||
| 12 | use namespace::autoclean; | ||
| 13 | use Moose; | ||
| 14 | extends 'Lingua::Interset::Tagset::Conll'; | ||
| 15 | |||
| 16 | |||
| 17 | |||
| 18 | #------------------------------------------------------------------------------ | ||
| 19 | # Returns the tagset id that should be set as the value of the 'tagset' feature | ||
| 20 | # during decoding. Every derived class must (re)define this method! The result | ||
| 21 | # should correspond to the last two parts in package name, lowercased. | ||
| 22 | # Specifically, it should be the ISO 639-2 language code, followed by '::' and | ||
| 23 | # a language-specific tagset id. Example: 'cs::multext'. | ||
| 24 | #------------------------------------------------------------------------------ | ||
| 25 | sub get_tagset_id | ||
| 26 | { | ||
| 27 | return 'nl::conll'; | ||
| 28 | } | ||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | #------------------------------------------------------------------------------ | ||
| 33 | # Creates atomic drivers for surface features. | ||
| 34 | #------------------------------------------------------------------------------ | ||
| 35 | sub _create_atoms | ||
| 36 | { | ||
| 37 | my $self = shift; | ||
| 38 | my %atoms; | ||
| 39 | # PART OF SPEECH #################### | ||
| 40 | $atoms{pos} = $self->create_atom | ||
| 41 | ( | ||
| 42 | 'surfeature' => 'pos', | ||
| 43 | 'decode_map' => | ||
| 44 | { | ||
| 45 | 'Adj' => ['pos' => 'adj'], # groot, goed, bekend, nodig, vorig | ||
| 46 | 'Adv' => ['pos' => 'adv'], # zo, nu, dan, hier, altijd | ||
| 47 | 'Art' => ['pos' => 'adj', 'prontype' => 'art'], # het, der, de, des, den | ||
| 48 | 'Conj' => ['pos' => 'conj'], # en, maar, of, dat, als, om | ||
| 49 | 'Int' => ['pos' => 'int'], # ja, nee | ||
| 50 | 'Misc' => [], # sarx, the, jazz, plaats, Bevrijding ... words unknown by the tagger? In the corpus, it occurs only with the feature 'vreemd' (foreign). | ||
| 51 | 'MWU' => [], # multi-word unit. Needs special treatment. Subpos contains the POSes. E.g. "MWU V_V" is combination of two verbs ("laat_staan"). | ||
| 52 | 'N' => ['pos' => 'noun'], # jaar, heer, land, plaats, tijd | ||
| 53 | 'Num' => ['pos' => 'num'], # twee, drie, vier, miljoen, tien | ||
| 54 | 'Prep' => ['pos' => 'adp', 'adpostype' => 'prep'], # van, in, op, met, voor | ||
| 55 | 'Pron' => ['pos' => 'noun', 'prontype' => 'prs'], # ik, we, wij, u, je, jij, jullie, ze, zij, hij, het, ie, zijzelf | ||
| 56 | 'Punc' => ['pos' => 'punc'], # " ' : ( ) ... | ||
| 57 | 'V' => ['pos' => 'verb'] # worden, zijn, blijven, komen, wezen | ||
| 58 | }, | ||
| 59 | 'encode_map' => | ||
| 60 | { | ||
| 61 | 'pos' => { 'noun' => { 'prontype' => { '' => 'N', | ||
| 62 | '@' => 'Pron' }}, | ||
| 63 | 'adj' => { 'prontype' => { '' => { 'numtype' => { '' => 'Adj', | ||
| 64 | '@' => 'Num' }}, | ||
| 65 | 'art' => 'Art' }}, | ||
| 66 | 'num' => 'Num', | ||
| 67 | 'verb' => 'V', | ||
| 68 | 'adv' => 'Adv', | ||
| 69 | 'adp' => 'Prep', | ||
| 70 | 'conj' => 'Conj', | ||
| 71 | 'int' => 'Int', | ||
| 72 | 'punc' => 'Punc', | ||
| 73 | 'sym' => 'Punc', | ||
| 74 | '@' => 'Misc' } | ||
| 75 | } | ||
| 76 | ); | ||
| 77 | # ADJECTIVE TYPE #################### | ||
| 78 | $atoms{adjtype} = $self->create_atom | ||
| 79 | ( | ||
| 80 | 'surfeature' => 'adjtype', | ||
| 81 | 'decode_map' => | ||
| 82 | { | ||
| 83 | # adjective type (attr and zelfst applies to numerals and pronouns too) | ||
| 84 | # adverbially used adjective | ||
| 85 | # Example: "goed" in "Ben je al goed opgeschoten?" = "Have you done good progress?" | ||
| 86 | # (goed, lang, erg, snel, zeker) | ||
| 87 | 'adv' => ['variant' => 'short', 'other' => {'synpos' => 'adv'}], | ||
| 88 | # attributively or predicatively used adjective | ||
| 89 | # Example: "Dat huis is groot genoeg om in te verdwalen" = "The house is big enough to get lost in" | ||
| 90 | # (groot, goed, bekend, nodig, vorig) | ||
| 91 | 'attr' => ['other' => {'synpos' => 'attr'}], | ||
| 92 | # independently used adjective | ||
| 93 | # Example: "Antwoord in vloeiend Nederlands:" = "Response in fluent Dutch:" | ||
| 94 | # (Nederlands, Frans, rood, groen, Engels) | ||
| 95 | 'zelfst' => ['other' => {'synpos' => 'self'}] | ||
| 96 | }, | ||
| 97 | 'encode_map' => | ||
| 98 | { | ||
| 99 | 'other/synpos' => { 'adv' => 'adv', | ||
| 100 | 'attr' => 'attr', | ||
| 101 | 'self' => 'zelfst', | ||
| 102 | '@' => { 'variant' => { 'short' => 'adv', | ||
| 103 | '@' => { 'prontype' => { 'prs' => { 'poss' => { '' => '', | ||
| 104 | '@' => { 'number' => { 'plur' => 'zelfst', | ||
| 105 | '@' => 'attr' }}}}, | ||
| 106 | 'rcp' => '', | ||
| 107 | '@' => { 'number' => { 'plur' => 'zelfst', | ||
| 108 | '@' => 'attr' }}}}}}} | ||
| 109 | } | ||
| 110 | ); | ||
| 111 | # DEGREE #################### | ||
| 112 | $atoms{degree} = $self->create_simple_atom | ||
| 113 | ( | ||
| 114 | 'intfeature' => 'degree', | ||
| 115 | 'simple_decode_map' => | ||
| 116 | { | ||
| 117 | # degree of comparison (adjectives, adverbs and indefinite numerals (veel/weinig, meer/minder, meest/minst)) | ||
| 118 | # positive (goed, lang, erg, snel, zeker) | ||
| 119 | 'stell' => 'pos', | ||
| 120 | # comparative (verder, later, eerder, vroeger, beter) | ||
| 121 | 'vergr' => 'cmp', | ||
| 122 | # superlative (best, grootst, kleinst, moeilijkst, mooist) | ||
| 123 | 'overtr' => 'sup' | ||
| 124 | } | ||
| 125 | ); | ||
| 126 | # ADJECTIVE FORM #################### | ||
| 127 | # Applies also to indefinite numerals and verbal participles. | ||
| 128 | $atoms{adjform} = $self->create_atom | ||
| 129 | ( | ||
| 130 | 'surfeature' => 'adjform', | ||
| 131 | 'decode_map' => | ||
| 132 | { | ||
| 133 | 'onverv' => [], # uninflected (best, grootst, kleinst, moeilijkst, mooist) | ||
| 134 | 'vervneut' => ['case' => 'nom'], # normal inflected form (mogelijke, ongelukkige, krachtige, denkbare, laatste) | ||
| 135 | 'vervgen' => ['case' => 'gen'], # genitive form (bijzonders, goeds, nieuws, vreselijks, lekkerders) | ||
| 136 | 'vervmv' => ['number' => 'plur'], # plural form (aanwezigen, religieuzen, Fransen, deskundigen, doden) | ||
| 137 | 'vervdat' => ['case' => 'dat'], # dative form, verbs only, not found in corpus | ||
| 138 | # comparative form of participles (occurs with "V", not with "Adj") | ||
| 139 | # tegemoetkomender = more accommodating; overrompelender | ||
| 140 | # vermoeider = more tired; verfijnder = more sophisticated | ||
| 141 | 'vervvergr' => ['degree' => 'cmp'] | ||
| 142 | }, | ||
| 143 | 'encode_map' => | ||
| 144 | { | ||
| 145 | 'pos' => { 'verb' => { 'degree' => { 'cmp' => 'vervvergr', | ||
| 146 | '@' => { 'verbform' => { 'part' => { 'number' => { 'plur' => 'vervmv', | ||
| 147 | '@' => { 'case' => { 'nom' => 'vervneut', | ||
| 148 | '@' => 'onverv' }}}}, | ||
| 149 | '@' => '' }}}}, | ||
| 150 | '@' => { 'number' => { 'plur' => 'vervmv', | ||
| 151 | '@' => { 'case' => { 'nom' => 'vervneut', | ||
| 152 | 'gen' => 'vervgen', | ||
| 153 | 'dat' => 'vervdat', | ||
| 154 | # The value 'onverv' occurs also with adverbs but only with those that have degree of comparison. | ||
| 155 | # With adjectives the degree is also always present, hence we can check on it. | ||
| 156 | # With numerals it occurs even without the degree. | ||
| 157 | '@' => { 'numtype' => { '' => { 'degree' => { '' => '', | ||
| 158 | '@' => 'onverv' }}, | ||
| 159 | '@' => 'onverv' }}}}}}} | ||
| 160 | } | ||
| 161 | ); | ||
| 162 | # ADVERB TYPE #################### | ||
| 163 | $atoms{advtype} = $self->create_atom | ||
| 164 | ( | ||
| 165 | 'surfeature' => 'advtype', | ||
| 166 | 'decode_map' => | ||
| 167 | { | ||
| 168 | # normal (zo, nu, dan, hier, altijd) | ||
| 169 | # gew|aanw: zo = so; nu = now; dan = then; hier = here; altijd = always | ||
| 170 | # gew|betr: hoe = how; waar = where; wanneer = when; waarom = why; hoeverre = to what extent | ||
| 171 | # gew|er: er = there (existential: er is = there is) | ||
| 172 | # gew|onbep: nooit = never; ooit = ever; ergens = somewhere; overal = everywhere; elders = elsewhere | ||
| 173 | # gew|vrag: waar = where; vanwaar = where from; alwaar = where to | ||
| 174 | # gew|geenfunc|stell|onverv: niet = not; nog = still; ook = also; wel = well; al = already | ||
| 175 | # gew|geenfunc|vergr|onverv: meer = more; vaker = more often; dichter = more densely; dichterbij = closer | ||
| 176 | # gew|geenfunc|overtr|onverv: meest = most | ||
| 177 | 'gew' => ['other' => {'advtype' => 'gew'}], | ||
| 178 | # pronominal (daar, daarna, waarin, waarbij) | ||
| 179 | # pron|aanw: daar = there; daarna = then; daardoor = thereby; daarmee = therewith; daarop = thereon | ||
| 180 | # pron|betr: waar = where; waaruit = whence; waaraan = whereat | ||
| 181 | # pron|er: er = there (existential: er is = there is) | ||
| 182 | # pron|onbep: ervan = whose; erop = on; erin; erover; ervoor = therefore | ||
| 183 | # pron|vrag: waarin = wherein; waarbij = whereby; waarmee; waarop = whereupon; waardoor = whereby | ||
| 184 | 'pron' => ['other' => {'advtype' => 'pron'}], | ||
| 185 | # adverbial or prepositional part of separable (phrasal) verb (uit, op, aan, af, in) | ||
| 186 | 'deelv' => ['parttype' => 'vbp', 'other' => {'advtype' => 'deelv'}], | ||
| 187 | # prepositional part of separed pronominal adverb (van, voor, aan, op, mee) | ||
| 188 | 'deeladv' => ['parttype' => 'vbp', 'other' => {'advtype' => 'deeladv'}] | ||
| 189 | }, | ||
| 190 | 'encode_map' => | ||
| 191 | { | ||
| 192 | 'other/advtype' => { 'gew' => 'gew', | ||
| 193 | 'pron' => 'pron', | ||
| 194 | 'deelv' => 'deelv', | ||
| 195 | 'deeladv' => 'deeladv', | ||
| 196 | '@' => { 'parttype' => { 'vbp' => 'deelv', | ||
| 197 | '@' => { 'prontype' => { '' => 'gew', | ||
| 198 | '@' => 'pron' }}}}} | ||
| 199 | } | ||
| 200 | ); | ||
| 201 | # FUNCTION OF NORMAL AND PRONOMINAL ADVERBS #################### | ||
| 202 | $atoms{function} = $self->create_atom | ||
| 203 | ( | ||
| 204 | 'surfeature' => 'function', | ||
| 205 | 'decode_map' => | ||
| 206 | { | ||
| 207 | 'geenfunc' => [], # no function information (meest, niet, nog, ook, wel) | ||
| 208 | 'betr' => ['prontype' => 'rel'], # relative pronoun or adverb (welke, die, dat, wat, wie, hoe, waar) | ||
| 209 | 'vrag' => ['prontype' => 'int'], # interrogative pronoun or adverb (wat, wie, welke, welk, waar, dat, vanwaar) | ||
| 210 | 'aanw' => ['prontype' => 'dem'], # demonstrative pronoun or adverb (deze, dit, die, dat, zo, nu, dan, daar, daardoor) | ||
| 211 | 'onbep' => ['prontype' => 'ind'], # indefinite pronoun, numeral or adverb (geen, andere, alle, enkele, wat, minst, meest, nooit, ooit) | ||
| 212 | 'er' => ['advtype' => 'ex'] # the adverb 'er' (existential 'there'?) | ||
| 213 | }, | ||
| 214 | 'encode_map' => | ||
| 215 | { | ||
| 216 | 'prontype' => { 'rel' => 'betr', | ||
| 217 | 'int' => 'vrag', | ||
| 218 | 'dem' => 'aanw', | ||
| 219 | 'ind' => 'onbep', | ||
| 220 | '@' => { 'advtype' => { 'ex' => 'er', | ||
| 221 | '@' => { 'parttype' => { 'vbp' => '', | ||
| 222 | '@' => 'geenfunc' }}}}} | ||
| 223 | } | ||
| 224 | ); | ||
| 225 | # DEFINITENESS #################### | ||
| 226 | $atoms{definite} = $self->create_simple_atom | ||
| 227 | ( | ||
| 228 | 'intfeature' => 'definite', | ||
| 229 | 'simple_decode_map' => | ||
| 230 | { | ||
| 231 | 'bep' => 'def', # (het, der, de, des, den) | ||
| 232 | 'onbep' => 'ind' # (een) | ||
| 233 | } | ||
| 234 | ); | ||
| 235 | # GENDER OF ARTICLES #################### | ||
| 236 | $atoms{gender} = $self->create_atom | ||
| 237 | ( | ||
| 238 | 'surfeature' => 'gender', | ||
| 239 | 'decode_map' => | ||
| 240 | { | ||
| 241 | 'zijd' => ['gender' => 'com'], # non-neuter (den) | ||
| 242 | 'zijdofmv' => [], # non-neuter gender or plural (de, der) | ||
| 243 | 'onzijd' => ['gender' => 'neut'], # neuter (het) | ||
| 244 | 'zijdofonzijd' => ['number' => 'sing'], # both genders possible (des, een) | ||
| 245 | }, | ||
| 246 | 'encode_map' => | ||
| 247 | { | ||
| 248 | 'gender' => { 'com' => 'zijd', | ||
| 249 | 'neut' => 'onzijd', | ||
| 250 | '@' => { 'number' => { 'sing' => 'zijdofonzijd', | ||
| 251 | '@' => 'zijdofmv' }}} | ||
| 252 | } | ||
| 253 | ); | ||
| 254 | # CASE OF ARTICLES, PRONOUNS AND NOUNS #################### | ||
| 255 | $atoms{case} = $self->create_atom | ||
| 256 | ( | ||
| 257 | 'surfeature' => 'case', | ||
| 258 | 'decode_map' => | ||
| 259 | { | ||
| 260 | 'neut' => [], # no case (i.e. nominative or a word that does not take case markings) (het, de, een) | ||
| 261 | 'nom' => ['case' => 'nom'], # nominative (only pronouns: ik, we, wij, u, je, jij, jullie, ze, zij, hij, het, ie, zijzelf) | ||
| 262 | 'gen' => ['case' => 'gen'], # genitive (der, des) | ||
| 263 | 'dat' => ['case' => 'dat'], # dative (den) | ||
| 264 | 'datofacc' => ['case' => 'dat|acc'], # dative or accusative (only pronouns: me, mij, ons, je, jou, jullie, ze, hem, haar, het, haarzelf, hen, hun) | ||
| 265 | 'acc' => ['case' => 'acc'], # accusative (not found in the corpus, there is only 'datofacc') | ||
| 266 | }, | ||
| 267 | 'encode_map' => | ||
| 268 | { | ||
| 269 | 'case' => { 'nom' => 'nom', | ||
| 270 | 'gen' => 'gen', | ||
| 271 | 'acc|dat' => 'datofacc', | ||
| 272 | 'dat' => 'dat', | ||
| 273 | 'acc' => 'acc', | ||
| 274 | '@' => { 'reflex' => { 'yes' => '', | ||
| 275 | '@' => 'neut' }}} | ||
| 276 | } | ||
| 277 | ); | ||
| 278 | # CONJUNCTION TYPE #################### | ||
| 279 | $atoms{conjtype} = $self->create_atom | ||
| 280 | ( | ||
| 281 | 'surfeature' => 'conjtype', | ||
| 282 | 'decode_map' => | ||
| 283 | { | ||
| 284 | 'neven' => ['conjtype' => 'coor'], # coordinating (en, maar, of) | ||
| 285 | 'onder' => ['conjtype' => 'sub'] # subordinating (dat, als, dan, om, zonder, door) | ||
| 286 | }, | ||
| 287 | 'encode_map' => | ||
| 288 | { | ||
| 289 | 'conjtype' => { 'coor' => 'neven', | ||
| 290 | 'sub' => 'onder' } | ||
| 291 | } | ||
| 292 | ); | ||
| 293 | # SUBORDINATING CONJUNCTION TYPE #################### | ||
| 294 | $atoms{sconjtype} = $self->create_atom | ||
| 295 | ( | ||
| 296 | 'surfeature' => 'sconjtype', | ||
| 297 | 'decode_map' => | ||
| 298 | { | ||
| 299 | # followed by a finite clause (dat, als, dan, omdat) | ||
| 300 | # Example: "ik hoop dat we tot een compromis kunnen komen" = "I hope that we can come to a compromise" | ||
| 301 | 'metfin' => ['other' => {'sconjtype' => 'fin'}], | ||
| 302 | # followed by an infinite clause (om, zonder, door, teneinde) | ||
| 303 | # Example: "Het was voor ons de kans om een ander Colombia te laten zien." = "It was for us a chance to show a different Colombia." | ||
| 304 | 'metinf' => ['other' => {'sconjtype' => 'inf'}] | ||
| 305 | }, | ||
| 306 | 'encode_map' => | ||
| 307 | { | ||
| 308 | 'other/sconjtype' => { 'inf' => 'metinf', | ||
| 309 | 'fin' => 'metfin', | ||
| 310 | # This feature is required for all subordinating conjunctions. | ||
| 311 | '@' => { 'conjtype' => { 'sub' => 'metfin' }}} | ||
| 312 | } | ||
| 313 | ); | ||
| 314 | # NOUN TYPE #################### | ||
| 315 | $atoms{nountype} = $self->create_simple_atom | ||
| 316 | ( | ||
| 317 | 'intfeature' => 'nountype', | ||
| 318 | 'simple_decode_map' => | ||
| 319 | { | ||
| 320 | 'soort' => 'com', # common noun is the default type of noun (jaar, heer, land, plaats, tijd) | ||
| 321 | 'eigen' => 'prop' # proper noun (Nederland, Amsterdam, zaterdag, Groningen, Rotterdam) | ||
| 322 | } | ||
| 323 | ); | ||
| 324 | # NUMBER #################### | ||
| 325 | $atoms{number} = $self->create_atom | ||
| 326 | ( | ||
| 327 | 'surfeature' => 'number', | ||
| 328 | 'decode_map' => | ||
| 329 | { | ||
| 330 | # enkelvoud (jaar, heer, land, plaats, tijd) | ||
| 331 | 'ev' => ['number' => 'sing'], | ||
| 332 | # meervoud (mensen, kinderen, jaren, problemen, landen) | ||
| 333 | 'mv' => ['number' => 'plur'], | ||
| 334 | # singular undistinguishable from plural (only pronouns: ze, zij, zich, zichzelf) | ||
| 335 | 'evofmv' => ['number' => 'sing|plur'] | ||
| 336 | }, | ||
| 337 | 'encode_map' => | ||
| 338 | { | ||
| 339 | 'number' => { 'plur|sing' => 'evofmv', | ||
| 340 | 'sing' => 'ev', | ||
| 341 | 'plur' => 'mv' } | ||
| 342 | } | ||
| 343 | ); | ||
| 344 | # NUMERAL TYPE #################### | ||
| 345 | $atoms{numtype} = $self->create_atom | ||
| 346 | ( | ||
| 347 | 'surfeature' => 'numtype', | ||
| 348 | 'decode_map' => | ||
| 349 | { | ||
| 350 | 'hoofd' => ['pos' => 'num', 'numtype' => 'card'], # hoofdtelwoord (twee, 1969, beider, minst, veel) | ||
| 351 | 'rang' => ['pos' => 'adj', 'numtype' => 'ord'], # rangtelwoord (eerste, tweede, derde, vierde, vijfde) | ||
| 352 | }, | ||
| 353 | 'encode_map' => | ||
| 354 | { | ||
| 355 | 'numtype' => { 'card' => 'hoofd', | ||
| 356 | 'ord' => 'rang' } | ||
| 357 | } | ||
| 358 | ); | ||
| 359 | # MISCELLANEOUS TYPE #################### | ||
| 360 | $atoms{misctype} = $self->create_atom | ||
| 361 | ( | ||
| 362 | 'surfeature' => 'misctype', | ||
| 363 | 'decode_map' => | ||
| 364 | { | ||
| 365 | 'afkort' => ['abbr' => 'yes'], # abbreviation | ||
| 366 | 'vreemd' => ['foreign' => 'yes'], # foreign expression | ||
| 367 | 'symbool' => ['pos' => 'sym'], # symbol not included in Punc | ||
| 368 | }, | ||
| 369 | 'encode_map' => | ||
| 370 | { | ||
| 371 | 'pos' => { 'sym' => 'symbool', | ||
| 372 | '@' => { 'foreign' => { 'yes' => 'vreemd', | ||
| 373 | '@' => { 'abbr' => { 'yes' => 'afkort' }}}}} | ||
| 374 | } | ||
| 375 | ); | ||
| 376 | # ADPOSITION TYPE #################### | ||
| 377 | $atoms{adpostype} = $self->create_atom | ||
| 378 | ( | ||
| 379 | 'surfeature' => 'adpostype', | ||
| 380 | 'decode_map' => | ||
| 381 | { | ||
| 382 | 'voor' => ['adpostype' => 'prep'], # preposition (voorzetsel) (van, in, op, met, voor) | ||
| 383 | 'achter' => ['adpostype' => 'post'], # postposition (achterzetsel) (in, incluis, op) | ||
| 384 | 'comb' => ['adpostype' => 'circ'], # second part of combined (split) preposition (toe, heen, af, in, uit) [van het begin af / from the beginning on: van/voor, af/comb] | ||
| 385 | 'voorinf' => ['parttype' => 'inf'] # infinitive marker (te) | ||
| 386 | }, | ||
| 387 | 'encode_map' => | ||
| 388 | { | ||
| 389 | 'parttype' => { 'inf' => 'voorinf', | ||
| 390 | '@' => { 'adpostype' => { 'prep' => 'voor', | ||
| 391 | 'post' => 'achter', | ||
| 392 | 'circ' => 'comb' }}} | ||
| 393 | } | ||
| 394 | ); | ||
| 395 | # PRONOUN TYPE #################### | ||
| 396 | $atoms{prontype} = $self->create_atom | ||
| 397 | ( | ||
| 398 | 'surfeature' => 'prontype', | ||
| 399 | 'decode_map' => | ||
| 400 | { | ||
| 401 | 'per' => ['prontype' => 'prs'], # persoonlijk (me, ik, ons, we, je, u, jullie, ze, hem, hij, hen) | ||
| 402 | 'bez' => ['prontype' => 'prs', 'poss' => 'yes'], # beztittelijk (mijn, onze, je, jullie, zijner, zijn, hun) | ||
| 403 | 'ref' => ['prontype' => 'prs', 'reflex' => 'yes'], # reflexief (me, mezelf, mij, ons, onszelf, je, jezelf, zich, zichzelf) | ||
| 404 | 'rec' => ['prontype' => 'rcp'], # reciprook (elkaar, elkaars) | ||
| 405 | 'aanw' => ['prontype' => 'dem'], # aanwijzend (deze, dit, die, dat) | ||
| 406 | 'betr' => ['prontype' => 'rel'], # betrekkelijk (welk, die, dat, wat, wie) | ||
| 407 | 'vrag' => ['prontype' => 'int'], # vragend (wie, wat, welke, welk) | ||
| 408 | 'onbep' => ['prontype' => 'ind|neg|tot'] # onbepaald (geen, andere, alle, enkele, wat) | ||
| 409 | }, | ||
| 410 | 'encode_map' => | ||
| 411 | { | ||
| 412 | 'prontype' => { 'prs' => { 'poss' => { 'yes' => 'bez', | ||
| 413 | '@' => { 'reflex' => { 'yes' => 'ref', | ||
| 414 | '@' => 'per' }}}}, | ||
| 415 | 'rcp' => 'rec', | ||
| 416 | 'dem' => 'aanw', | ||
| 417 | 'rel' => 'betr', | ||
| 418 | 'int' => 'vrag', | ||
| 419 | 'ind' => 'onbep', | ||
| 420 | 'neg' => 'onbep', | ||
| 421 | 'tot' => 'onbep' } | ||
| 422 | } | ||
| 423 | ); | ||
| 424 | # SPECIFIC PRONOUN #################### | ||
| 425 | $atoms{pronoun} = $self->create_atom | ||
| 426 | ( | ||
| 427 | 'surfeature' => 'pronoun', | ||
| 428 | 'decode_map' => | ||
| 429 | { | ||
| 430 | # eigen = own | ||
| 431 | 'weigen' => ['other' => {'pronoun' => 'eigen'}], | ||
| 432 | # zelf = self | ||
| 433 | 'wzelf' => ['other' => {'pronoun' => 'zelf'}] | ||
| 434 | }, | ||
| 435 | 'encode_map' => | ||
| 436 | { | ||
| 437 | 'other/pronoun' => { 'eigen' => 'weigen', | ||
| 438 | 'zelf' => 'wzelf' } | ||
| 439 | } | ||
| 440 | ); | ||
| 441 | # PERSON #################### | ||
| 442 | $atoms{person} = $self->create_atom | ||
| 443 | ( | ||
| 444 | 'surfeature' => 'person', | ||
| 445 | 'decode_map' => | ||
| 446 | { | ||
| 447 | '1' => ['person' => '1'], # (mijn, onze, ons, me, mij, ik, we, mezelf, onszelf) | ||
| 448 | '2' => ['person' => '2'], # (je, uw, jouw, jullie, jou, u, je, jij, jezelf) | ||
| 449 | '3' => ['person' => '3'], # (zijner, zijn, haar, zijnen, zijne, hun, ze, zij, hem, het, hij, ie, zijzelf, zich, zichzelf) | ||
| 450 | '1of2of3' => [], # person not marked; applies only to verbs in imperfect past (was, werd, heette; waren, werden, bleven) and plural imperfect present (zijn, worden, blijven) | ||
| 451 | }, | ||
| 452 | 'encode_map' => | ||
| 453 | { | ||
| 454 | 'person' => { '1' => '1', | ||
| 455 | '2' => '2', | ||
| 456 | '3' => '3', | ||
| 457 | '@' => { 'pos' => { 'verb' => { 'mood' => { 'ind' => '1of2of3' }}}}} | ||
| 458 | } | ||
| 459 | ); | ||
| 460 | # PUNCTUATION TYPE #################### | ||
| 461 | $atoms{punctype} = $self->create_atom | ||
| 462 | ( | ||
| 463 | 'surfeature' => 'punctype', | ||
| 464 | 'decode_map' => | ||
| 465 | { | ||
| 466 | 'aanhaaldubb' => ['punctype' => 'quot'], # " | ||
| 467 | 'aanhaalenk' => ['punctype' => 'quot', 'other' => {'punctype' => 'singlequot'}], # ' | ||
| 468 | 'dubbpunt' => ['punctype' => 'colo'], # : | ||
| 469 | 'en' => ['pos' => 'sym', 'other' => {'symbol' => 'and'}], # & | ||
| 470 | 'gedstreep' => ['punctype' => 'dash'], # - | ||
| 471 | 'haakopen' => ['punctype' => 'brck', 'puncside' => 'ini'], # ( | ||
| 472 | 'haaksluit' => ['punctype' => 'brck', 'puncside' => 'fin'], # ) | ||
| 473 | 'hellip' => ['punctype' => 'peri', 'other' => {'punctype' => 'ellipsis'}], # ... | ||
| 474 | 'isgelijk' => ['pos' => 'sym', 'other' => {'symbol' => 'equals'}], # = | ||
| 475 | 'komma' => ['punctype' => 'comm'], # , | ||
| 476 | 'liggstreep' => ['pos' => 'sym', 'other' => {'symbol' => 'underscore'}], # -, _ | ||
| 477 | 'maal' => ['pos' => 'sym', 'other' => {'symbol' => 'times'}], # x | ||
| 478 | 'plus' => ['pos' => 'sym', 'other' => {'symbol' => 'plus'}], # + | ||
| 479 | 'punt' => ['punctype' => 'peri'], # . | ||
| 480 | 'puntkomma' => ['punctype' => 'semi'], # ; | ||
| 481 | 'schuinstreep'=> ['pos' => 'sym', 'other' => {'symbol' => 'slash'}], # / | ||
| 482 | 'uitroep' => ['punctype' => 'excl'], # ! | ||
| 483 | 'vraag' => ['punctype' => 'qest'], # ? | ||
| 484 | }, | ||
| 485 | 'encode_map' => | ||
| 486 | { | ||
| 487 | 'punctype' => { 'quot' => { 'other/punctype' => { 'singlequot' => 'aanhaalenk', | ||
| 488 | '@' => 'aanhaaldubb' }}, | ||
| 489 | 'colo' => 'dubbpunt', | ||
| 490 | 'dash' => 'gedstreep', | ||
| 491 | 'brck' => { 'puncside' => { 'ini' => 'haakopen', | ||
| 492 | '@' => 'haaksluit' }}, | ||
| 493 | 'comm' => 'komma', | ||
| 494 | 'peri' => { 'other/punctype' => { 'ellipsis' => 'hellip', | ||
| 495 | '@' => 'punt' }}, | ||
| 496 | 'semi' => 'puntkomma', | ||
| 497 | 'excl' => 'uitroep', | ||
| 498 | 'qest' => 'vraag', | ||
| 499 | '@' => { 'other/symbol' => { 'and' => 'en', | ||
| 500 | 'equals' => 'isgelijk', | ||
| 501 | 'underscore' => 'liggstreep', | ||
| 502 | 'times' => 'maal', | ||
| 503 | 'plus' => 'plus', | ||
| 504 | 'slash' => 'schuinstreep', | ||
| 505 | '@' => 'isgelijk' }}} | ||
| 506 | } | ||
| 507 | ); | ||
| 508 | # VERB TYPE #################### | ||
| 509 | $atoms{verbtype} = $self->create_atom | ||
| 510 | ( | ||
| 511 | 'surfeature' => 'verbtype', | ||
| 512 | 'decode_map' => | ||
| 513 | { | ||
| 514 | 'trans' => ['subcat' => 'tran'], # transitive (maken, zien, doen, nemen, geven) | ||
| 515 | 'refl' => ['reflex' => 'yes'], # reflexive (verzetten, ontwikkelen, voelen, optrekken, concentreren) | ||
| 516 | 'intrans' => ['subcat' => 'intr'], # intransitive (komen, gaan, staan, vertrekken, spelen) | ||
| 517 | 'hulp' => ['verbtype' => 'mod'], # auxiliary / modal (kunnen, moeten, hebben, gaan, laten) | ||
| 518 | 'hulpofkopp' => ['verbtype' => 'aux|cop'] # auxiliary or copula (worden, zijn, blijven, komen, wezen) | ||
| 519 | }, | ||
| 520 | 'encode_map' => | ||
| 521 | { | ||
| 522 | 'verbtype' => { 'aux' => 'hulpofkopp', | ||
| 523 | 'cop' => 'hulpofkopp', | ||
| 524 | 'mod' => 'hulp', | ||
| 525 | '@' => { 'reflex' => { 'yes' => 'refl', | ||
| 526 | '@' => { 'subcat' => { 'tran' => 'trans', | ||
| 527 | 'intr' => 'intrans' }}}}} | ||
| 528 | } | ||
| 529 | ); | ||
| 530 | # VERB FORM, MOOD, TENSE AND ASPECT #################### | ||
| 531 | $atoms{verbform} = $self->create_atom | ||
| 532 | ( | ||
| 533 | 'surfeature' => 'verbform', | ||
| 534 | 'decode_map' => | ||
| 535 | { | ||
| 536 | 'ott' => ['verbform' => 'fin', 'mood' => 'ind', 'aspect' => 'imp', 'tense' => 'pres'], # (komt, heet, gaat, ligt, staat) | ||
| 537 | 'ovt' => ['verbform' => 'fin', 'mood' => 'ind', 'aspect' => 'imp', 'tense' => 'past'], # (kwam, ging, stond, viel, won) | ||
| 538 | 'tegdw' => ['verbform' => 'part', 'tense' => 'pres'], # (volgend, verrassend, bevredigend, vervelend, aanvallend) | ||
| 539 | 'verldw' => ['verbform' => 'part', 'tense' => 'past'], # (afgelopen, gekomen, gegaan, gebeurd, begonnen) | ||
| 540 | 'inf' => ['verbform' => 'inf'], # (komen, gaan, staan, vertrekken, spelen) | ||
| 541 | 'conj' => ['verbform' => 'fin', 'mood' => 'sub'], # (leve, ware, inslape, oordele, zegge) | ||
| 542 | 'imp' => ['verbform' => 'fin', 'mood' => 'imp'], # (kijk, kom, ga, denk, wacht) | ||
| 543 | }, | ||
| 544 | 'encode_map' => | ||
| 545 | { | ||
| 546 | 'verbform' => { 'inf' => 'inf', | ||
| 547 | 'fin' => { 'mood' => { 'ind' => { 'tense' => { 'pres' => 'ott', | ||
| 548 | 'past' => 'ovt' }}, | ||
| 549 | 'sub' => 'conj', | ||
| 550 | 'imp' => 'imp' }}, | ||
| 551 | 'part' => { 'tense' => { 'pres' => 'tegdw', | ||
| 552 | 'past' => 'verldw' }}} | ||
| 553 | } | ||
| 554 | ); | ||
| 555 | # SUBSTANTIVAL USAGE OF INFINITIVE #################### | ||
| 556 | $atoms{subst} = $self->create_atom | ||
| 557 | ( | ||
| 558 | 'surfeature' => 'subst', | ||
| 559 | 'decode_map' => | ||
| 560 | { | ||
| 561 | # (worden, zijn, optreden, streven, dringen, maken, bereiken) | ||
| 562 | 'subst' => ['other' => {'infinitive' => 'subst'}] | ||
| 563 | }, | ||
| 564 | 'encode_map' => | ||
| 565 | { | ||
| 566 | 'other/infinitive' => { 'subst' => 'subst' } | ||
| 567 | } | ||
| 568 | ); | ||
| 569 | # MERGED ATOM TO DECODE ANY FEATURE VALUE #################### | ||
| 570 | my @fatoms = map {$atoms{$_}} (@{$self->features_all()}); | ||
| 571 | $atoms{feature} = $self->create_merged_atom | ||
| 572 | ( | ||
| 573 | 'surfeature' => 'feature', | ||
| 574 | 'atoms' => \@fatoms | ||
| 575 | ); | ||
| 576 | return \%atoms; | ||
| 577 | } | ||
| 578 | |||
| 579 | |||
| 580 | |||
| 581 | #------------------------------------------------------------------------------ | ||
| 582 | # Creates the list of all surface CoNLL features that can appear in the FEATS | ||
| 583 | # column. This list will be used in decode(). | ||
| 584 | #------------------------------------------------------------------------------ | ||
| 585 | sub _create_features_all | ||
| 586 | { | ||
| 587 | my $self = shift; | ||
| 588 | my @features = ('pos', 'adjtype', 'degree', 'adjform', 'advtype', 'function', 'definite', 'gender', 'case', 'conjtype', 'sconjtype', 'nountype', 'number', | ||
| 589 | 'numtype', 'misctype', 'adpostype', 'prontype', 'pronoun', 'person', 'punctype', 'verbtype', 'verbform', 'subst'); | ||
| 590 | return \@features; | ||
| 591 | } | ||
| 592 | |||
| 593 | |||
| 594 | |||
| 595 | #------------------------------------------------------------------------------ | ||
| 596 | # Creates the list of surface CoNLL features that can appear in the FEATS | ||
| 597 | # column with particular parts of speech. This list will be used in encode(). | ||
| 598 | #------------------------------------------------------------------------------ | ||
| 599 | sub _create_features_pos | ||
| 600 | { | ||
| 601 | my $self = shift; | ||
| 602 | my %features = | ||
| 603 | ( | ||
| 604 | 'Adj' => ['adjtype', 'degree', 'adjform'], | ||
| 605 | 'Adv' => ['advtype', 'function', 'degree', 'adjform'], | ||
| 606 | 'Art' => ['definite', 'gender', 'case'], | ||
| 607 | 'Conj' => ['conjtype', 'sconjtype'], | ||
| 608 | 'Misc' => ['misctype'], | ||
| 609 | 'N' => ['nountype', 'number', 'case'], | ||
| 610 | 'Num' => ['numtype', 'definite', 'prontype', 'adjtype', 'degree', 'adjform'], | ||
| 611 | 'Prep' => ['adpostype'], | ||
| 612 | 'Pron' => ['prontype', 'person', 'number', 'case', 'adjtype', 'pronoun'], | ||
| 613 | 'Punc' => ['punctype'], | ||
| 614 | 'V' => ['verbtype', 'verbform', 'subst', 'person', 'number'], | ||
| 615 | 'Vpart' => ['verbtype', 'verbform', 'adjform'] | ||
| 616 | ); | ||
| 617 | return \%features; | ||
| 618 | } | ||
| 619 | |||
| 620 | |||
| 621 | |||
| 622 | #------------------------------------------------------------------------------ | ||
| 623 | # Decodes a physical tag (string) and returns the corresponding feature | ||
| 624 | # structure. | ||
| 625 | #------------------------------------------------------------------------------ | ||
| 626 | sub decode | ||
| 627 | { | ||
| 628 | my $self = shift; | ||
| 629 | my $tag = shift; | ||
| 630 | my $fs = Lingua::Interset::FeatureStructure->new(); | ||
| 631 | $fs->set_tagset('nl::conll'); | ||
| 632 | my $atoms = $self->atoms(); | ||
| 633 | # Three components, and the first two are identical: pos, pos, features. | ||
| 634 | # example: N\tN\tsoort|ev|neut | ||
| 635 | my ($pos, $subpos, $features) = split(/\s+/, $tag); | ||
| 636 | # The underscore character is used if there are no features. | ||
| 637 | $features = '' if($features eq '_'); | ||
| 638 | my @features = split(/\|/, $features); | ||
| 639 | $atoms->{pos}->decode_and_merge_hard($subpos, $fs); | ||
| 640 | foreach my $feature (@features) | ||
| 641 | { | ||
| 642 | $atoms->{feature}->decode_and_merge_hard($feature, $fs); | ||
| 643 | } | ||
| 644 | # The feature 'onbep' can mean indefinite pronoun or indefinite article. | ||
| 645 | # If it is article, we want prontype=art, not prontype=ind. | ||
| 646 | if($tag =~ m/^Art.*onbep/) | ||
| 647 | { | ||
| 648 | $fs->set('prontype', 'art'); | ||
| 649 | $fs->set('definite', 'ind'); | ||
| 650 | } | ||
| 651 | return $fs; | ||
| 652 | } | ||
| 653 | |||
| 654 | |||
| 655 | |||
| 656 | #------------------------------------------------------------------------------ | ||
| 657 | # Takes feature structure and returns the corresponding physical tag (string). | ||
| 658 | #------------------------------------------------------------------------------ | ||
| 659 | sub encode | ||
| 660 | { | ||
| 661 | my $self = shift; | ||
| 662 | my $fs = shift; # Lingua::Interset::FeatureStructure | ||
| 663 | my $atoms = $self->atoms(); | ||
| 664 | my $subpos = $atoms->{pos}->encode($fs); | ||
| 665 | my $fpos = $subpos; | ||
| 666 | $fpos = 'Vpart' if($fpos eq 'V' && $fs->is_participle()); | ||
| 667 | my $feature_names = $self->get_feature_names($fpos); | ||
| 668 | my $pos = $subpos; | ||
| 669 | my $value_only = 1; | ||
| 670 | my $tag = $self->encode_conll($fs, $pos, $subpos, $feature_names, $value_only); | ||
| 671 | return $tag; | ||
| 672 | } | ||
| 673 | |||
| 674 | |||
| 675 | |||
| 676 | #------------------------------------------------------------------------------ | ||
| 677 | # Returns reference to list of known tags. | ||
| 678 | # Tags were collected from the corpus, 745 distinct tags found. | ||
| 679 | # MWU (multi-word-unit) tags were removed because they are sequences of normal | ||
| 680 | # tags and we cannot support them. | ||
| 681 | # Total 198 tags survived. | ||
| 682 | # Total 208 tags after adding missing tags (without the 'other' feature etc.) | ||
| 683 | #------------------------------------------------------------------------------ | ||
| 684 | sub list | ||
| 685 | { | ||
| 686 | my $self = shift; | ||
| 687 | my $list = <<end_of_list | ||
| 688 | Adj Adj adv|stell|onverv | ||
| 689 | Adj Adj adv|stell|vervneut | ||
| 690 | Adj Adj adv|vergr|onverv | ||
| 691 | Adj Adj adv|vergr|vervneut | ||
| 692 | Adj Adj attr|overtr|onverv | ||
| 693 | Adj Adj attr|overtr|vervneut | ||
| 694 | Adj Adj attr|stell|onverv | ||
| 695 | Adj Adj attr|stell|vervgen | ||
| 696 | Adj Adj attr|stell|vervneut | ||
| 697 | Adj Adj attr|vergr|onverv | ||
| 698 | Adj Adj attr|vergr|vervgen | ||
| 699 | Adj Adj attr|vergr|vervneut | ||
| 700 | Adj Adj zelfst|overtr|vervneut | ||
| 701 | Adj Adj zelfst|stell|onverv | ||
| 702 | Adj Adj zelfst|stell|vervmv | ||
| 703 | Adj Adj zelfst|stell|vervneut | ||
| 704 | Adj Adj zelfst|vergr|vervneut | ||
| 705 | Adv Adv deeladv | ||
| 706 | Adv Adv deelv | ||
| 707 | Adv Adv gew|aanw | ||
| 708 | Adv Adv gew|betr | ||
| 709 | Adv Adv gew|er | ||
| 710 | Adv Adv gew|geenfunc|overtr|onverv | ||
| 711 | Adv Adv gew|geenfunc|stell|onverv | ||
| 712 | Adv Adv gew|geenfunc|vergr|onverv | ||
| 713 | Adv Adv gew|onbep | ||
| 714 | Adv Adv gew|vrag | ||
| 715 | Adv Adv pron|aanw | ||
| 716 | Adv Adv pron|betr | ||
| 717 | Adv Adv pron|er | ||
| 718 | Adv Adv pron|onbep | ||
| 719 | Adv Adv pron|vrag | ||
| 720 | Art Art bep|onzijd|neut | ||
| 721 | Art Art bep|zijdofmv|gen | ||
| 722 | Art Art bep|zijdofmv|neut | ||
| 723 | Art Art bep|zijdofonzijd|gen | ||
| 724 | Art Art bep|zijd|dat | ||
| 725 | Art Art onbep|zijdofonzijd|neut | ||
| 726 | Conj Conj neven | ||
| 727 | Conj Conj onder|metfin | ||
| 728 | Conj Conj onder|metinf | ||
| 729 | Int Int _ | ||
| 730 | Misc Misc vreemd | ||
| 731 | N N eigen|ev|gen | ||
| 732 | N N eigen|ev|neut | ||
| 733 | N N eigen|mv|neut | ||
| 734 | N N soort|ev|dat | ||
| 735 | N N soort|ev|gen | ||
| 736 | N N soort|ev|neut | ||
| 737 | N N soort|mv|neut | ||
| 738 | Num Num hoofd|bep|attr|onverv | ||
| 739 | Num Num hoofd|bep|attr|vervgen | ||
| 740 | Num Num hoofd|bep|zelfst|onverv | ||
| 741 | Num Num hoofd|bep|zelfst|vervgen | ||
| 742 | Num Num hoofd|bep|zelfst|vervmv | ||
| 743 | Num Num hoofd|onbep|attr|overtr|onverv | ||
| 744 | Num Num hoofd|onbep|attr|overtr|vervneut | ||
| 745 | Num Num hoofd|onbep|attr|stell|onverv | ||
| 746 | Num Num hoofd|onbep|attr|stell|vervneut | ||
| 747 | Num Num hoofd|onbep|attr|vergr|onverv | ||
| 748 | Num Num hoofd|onbep|attr|vergr|vervneut | ||
| 749 | Num Num hoofd|onbep|zelfst|overtr|onverv | ||
| 750 | Num Num hoofd|onbep|zelfst|overtr|vervmv | ||
| 751 | Num Num hoofd|onbep|zelfst|overtr|vervneut | ||
| 752 | Num Num hoofd|onbep|zelfst|stell|onverv | ||
| 753 | Num Num hoofd|onbep|zelfst|stell|vervmv | ||
| 754 | Num Num hoofd|onbep|zelfst|stell|vervneut | ||
| 755 | Num Num hoofd|onbep|zelfst|vergr|onverv | ||
| 756 | Num Num hoofd|onbep|zelfst|vergr|vervmv | ||
| 757 | Num Num hoofd|onbep|zelfst|vergr|vervneut | ||
| 758 | Num Num rang|bep|attr|onverv | ||
| 759 | Num Num rang|bep|zelfst|onverv | ||
| 760 | Prep Prep achter | ||
| 761 | Prep Prep comb | ||
| 762 | Prep Prep voor | ||
| 763 | Prep Prep voorinf | ||
| 764 | Pron Pron aanw|dat|attr | ||
| 765 | Pron Pron aanw|gen|attr | ||
| 766 | Pron Pron aanw|neut|attr | ||
| 767 | Pron Pron aanw|neut|attr|weigen | ||
| 768 | Pron Pron aanw|neut|attr|wzelf | ||
| 769 | Pron Pron aanw|neut|zelfst | ||
| 770 | Pron Pron betr|gen|attr | ||
| 771 | Pron Pron betr|gen|zelfst | ||
| 772 | Pron Pron betr|neut|attr | ||
| 773 | Pron Pron betr|neut|zelfst | ||
| 774 | Pron Pron bez|1|ev|neut|attr | ||
| 775 | Pron Pron bez|1|ev|neut|zelfst | ||
| 776 | Pron Pron bez|1|mv|neut|attr | ||
| 777 | Pron Pron bez|1|mv|neut|zelfst | ||
| 778 | Pron Pron bez|2|ev|neut|attr | ||
| 779 | Pron Pron bez|2|ev|neut|zelfst | ||
| 780 | Pron Pron bez|2|mv|neut|attr | ||
| 781 | Pron Pron bez|2|mv|neut|zelfst | ||
| 782 | Pron Pron bez|3|ev|gen|attr | ||
| 783 | Pron Pron bez|3|ev|gen|zelfst | ||
| 784 | Pron Pron bez|3|ev|neut|attr | ||
| 785 | Pron Pron bez|3|ev|neut|zelfst | ||
| 786 | Pron Pron bez|3|mv|neut|attr | ||
| 787 | Pron Pron bez|3|mv|neut|zelfst | ||
| 788 | Pron Pron onbep|gen|attr | ||
| 789 | Pron Pron onbep|gen|zelfst | ||
| 790 | Pron Pron onbep|neut|attr | ||
| 791 | Pron Pron onbep|neut|zelfst | ||
| 792 | Pron Pron per|1|ev|datofacc | ||
| 793 | Pron Pron per|1|ev|nom | ||
| 794 | Pron Pron per|1|mv|datofacc | ||
| 795 | Pron Pron per|1|mv|nom | ||
| 796 | Pron Pron per|2|ev|datofacc | ||
| 797 | Pron Pron per|2|ev|nom | ||
| 798 | Pron Pron per|2|mv|datofacc | ||
| 799 | Pron Pron per|2|mv|nom | ||
| 800 | Pron Pron per|3|evofmv|datofacc | ||
| 801 | Pron Pron per|3|evofmv|nom | ||
| 802 | Pron Pron per|3|ev|datofacc | ||
| 803 | Pron Pron per|3|ev|nom | ||
| 804 | Pron Pron per|3|mv|datofacc | ||
| 805 | Pron Pron per|3|mv|nom | ||
| 806 | Pron Pron rec|gen | ||
| 807 | Pron Pron rec|neut | ||
| 808 | Pron Pron ref|1|ev | ||
| 809 | Pron Pron ref|1|mv | ||
| 810 | Pron Pron ref|2|ev | ||
| 811 | Pron Pron ref|3|evofmv | ||
| 812 | Pron Pron vrag|neut|attr | ||
| 813 | Pron Pron vrag|neut|zelfst | ||
| 814 | Punc Punc aanhaaldubb | ||
| 815 | Punc Punc aanhaalenk | ||
| 816 | Punc Punc dubbpunt | ||
| 817 | Punc Punc en | ||
| 818 | Punc Punc haakopen | ||
| 819 | Punc Punc haaksluit | ||
| 820 | Punc Punc hellip | ||
| 821 | Punc Punc isgelijk | ||
| 822 | Punc Punc komma | ||
| 823 | Punc Punc liggstreep | ||
| 824 | Punc Punc maal | ||
| 825 | Punc Punc plus | ||
| 826 | Punc Punc punt | ||
| 827 | Punc Punc puntkomma | ||
| 828 | Punc Punc schuinstreep | ||
| 829 | Punc Punc uitroep | ||
| 830 | Punc Punc vraag | ||
| 831 | V V hulpofkopp|conj | ||
| 832 | V V hulpofkopp|imp | ||
| 833 | V V hulpofkopp|inf | ||
| 834 | V V hulpofkopp|inf|subst | ||
| 835 | V V hulpofkopp|ott|1of2of3|mv | ||
| 836 | V V hulpofkopp|ott|1|ev | ||
| 837 | V V hulpofkopp|ott|2|ev | ||
| 838 | V V hulpofkopp|ott|3|ev | ||
| 839 | V V hulpofkopp|ovt|1of2of3|ev | ||
| 840 | V V hulpofkopp|ovt|1of2of3|mv | ||
| 841 | V V hulpofkopp|tegdw|vervneut | ||
| 842 | V V hulpofkopp|verldw|onverv | ||
| 843 | V V hulp|conj | ||
| 844 | V V hulp|inf | ||
| 845 | V V hulp|ott|1of2of3|mv | ||
| 846 | V V hulp|ott|1|ev | ||
| 847 | V V hulp|ott|2|ev | ||
| 848 | V V hulp|ott|3|ev | ||
| 849 | V V hulp|ovt|1of2of3|ev | ||
| 850 | V V hulp|ovt|1of2of3|mv | ||
| 851 | V V hulp|verldw|onverv | ||
| 852 | V V intrans|conj | ||
| 853 | V V intrans|imp | ||
| 854 | V V intrans|inf | ||
| 855 | V V intrans|inf|subst | ||
| 856 | V V intrans|ott|1of2of3|mv | ||
| 857 | V V intrans|ott|1|ev | ||
| 858 | V V intrans|ott|2|ev | ||
| 859 | V V intrans|ott|3|ev | ||
| 860 | V V intrans|ovt|1of2of3|ev | ||
| 861 | V V intrans|ovt|1of2of3|mv | ||
| 862 | V V intrans|tegdw|onverv | ||
| 863 | V V intrans|tegdw|vervmv | ||
| 864 | V V intrans|tegdw|vervneut | ||
| 865 | V V intrans|tegdw|vervvergr | ||
| 866 | V V intrans|verldw|onverv | ||
| 867 | V V intrans|verldw|vervmv | ||
| 868 | V V intrans|verldw|vervneut | ||
| 869 | V V refl|imp | ||
| 870 | V V refl|inf | ||
| 871 | V V refl|inf|subst | ||
| 872 | V V refl|ott|1of2of3|mv | ||
| 873 | V V refl|ott|1|ev | ||
| 874 | V V refl|ott|2|ev | ||
| 875 | V V refl|ott|3|ev | ||
| 876 | V V refl|ovt|1of2of3|ev | ||
| 877 | V V refl|ovt|1of2of3|mv | ||
| 878 | V V refl|tegdw|vervneut | ||
| 879 | V V refl|verldw|onverv | ||
| 880 | V V trans|conj | ||
| 881 | V V trans|imp | ||
| 882 | V V trans|inf | ||
| 883 | V V trans|inf|subst | ||
| 884 | V V trans|ott|1of2of3|mv | ||
| 885 | V V trans|ott|1|ev | ||
| 886 | V V trans|ott|2|ev | ||
| 887 | V V trans|ott|3|ev | ||
| 888 | V V trans|ovt|1of2of3|ev | ||
| 889 | V V trans|ovt|1of2of3|mv | ||
| 890 | V V trans|tegdw|onverv | ||
| 891 | V V trans|tegdw|vervneut | ||
| 892 | V V trans|verldw|onverv | ||
| 893 | V V trans|verldw|vervmv | ||
| 894 | V V trans|verldw|vervneut | ||
| 895 | V V trans|verldw|vervvergr | ||
| 896 | end_of_list | ||
| 897 | ; | ||
| 898 | # Protect from editors that replace tabs by spaces. | ||
| 899 | $list =~ s/ \s+/\t/sg; | ||
| 900 | my @list = split(/\r?\n/, $list); | ||
| 901 | return \@list; | ||
| 902 | } | ||
| 903 | |||
| 904 | |||
| 905 | |||
| 906 | 1; | ||
| 907 | |||
| 908 | __END__ | ||
| 909 | |||
| 910 | =pod | ||
| 911 | |||
| 912 | =encoding UTF-8 | ||
| 913 | |||
| 914 | =head1 NAME | ||
| 915 | |||
| 916 | Lingua::Interset::Tagset::NL::Conll - Driver for the Dutch tagset of the CoNLL 2006 Shared Task (derived from the Alpino tagset). | ||
| 917 | |||
| 918 | =head1 VERSION | ||
| 919 | |||
| 920 | version 3.015 | ||
| 921 | |||
| 922 | =head1 SYNOPSIS | ||
| 923 | |||
| 924 | use Lingua::Interset::Tagset::NL::Conll; | ||
| 925 | my $driver = Lingua::Interset::Tagset::NL::Conll->new(); | ||
| 926 | my $fs = $driver->decode("N\tN\tsoort|ev|neut"); | ||
| 927 | |||
| 928 | or | ||
| 929 | |||
| 930 | use Lingua::Interset qw(decode); | ||
| 931 | my $fs = decode('nl::conll', "N\tN\tsoort|ev|neut"); | ||
| 932 | |||
| 933 | =head1 DESCRIPTION | ||
| 934 | |||
| 935 | Interset driver for the Dutch tagset of the CoNLL 2006 Shared Task. | ||
| 936 | CoNLL tagsets in Interset are traditionally three values separated by tabs. | ||
| 937 | The values come from the CoNLL columns CPOS, POS and FEAT. For Dutch, | ||
| 938 | these values are derived from the tagset of the Alpino treebank. | ||
| 939 | |||
| 940 | =head1 SEE ALSO | ||
| 941 | |||
| 942 | L<Lingua::Interset>, | ||
| 943 | L<Lingua::Interset::Tagset>, | ||
| 944 | L<Lingua::Interset::Tagset::Conll>, | ||
| 945 | L<Lingua::Interset::FeatureStructure> | ||
| 946 | |||
| 947 | =head1 AUTHOR | ||
| 948 | |||
| 949 | Dan Zeman <zeman@ufal.mff.cuni.cz> | ||
| 950 | |||
| 951 | =head1 COPYRIGHT AND LICENSE | ||
| 952 | |||
| 953 | This software is copyright (c) 2019 by Univerzita Karlova (Charles University). | ||
| 954 | |||
| 955 | This is free software; you can redistribute it and/or modify it under | ||
| 956 | the same terms as the Perl 5 programming language system itself. | ||
| 957 | |||
| 958 | =cut |