| 1 | # ABSTRACT: Driver for the EAGLES-based tagset for Portuguese in Freeling. | ||
| 2 | # Copyright © 2016, 2017 Dan Zeman <zeman@ufal.mff.cuni.cz> | ||
| 3 | |||
| 4 | package Lingua::Interset::Tagset::PT::Freeling; | ||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | our $VERSION = '3.015'; | ||
| 8 | |||
| 9 | use utf8; | ||
| 10 | use open ':utf8'; | ||
| 11 | use namespace::autoclean; | ||
| 12 | use Moose; | ||
| 13 | extends 'Lingua::Interset::Tagset'; | ||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | has 'atoms' => ( isa => 'HashRef', is => 'ro', builder => '_create_atoms', lazy => 1 ); | ||
| 18 | has 'feature_map' => ( isa => 'HashRef', is => 'ro', builder => '_create_feature_map', lazy => 1 ); | ||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | #------------------------------------------------------------------------------ | ||
| 23 | # Returns the tagset id that should be set as the value of the 'tagset' feature | ||
| 24 | # during decoding. Every derived class must (re)define this method! The result | ||
| 25 | # should correspond to the last two parts in package name, lowercased. | ||
| 26 | #------------------------------------------------------------------------------ | ||
| 27 | sub get_tagset_id | ||
| 28 | { | ||
| 29 | return 'pt::freeling'; | ||
| 30 | } | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | #------------------------------------------------------------------------------ | ||
| 35 | # Creates atomic drivers for surface features. | ||
| 36 | #------------------------------------------------------------------------------ | ||
| 37 | sub _create_atoms | ||
| 38 | { | ||
| 39 | my $self = shift; | ||
| 40 | my %atoms; | ||
| 41 | # PART OF SPEECH #################### | ||
| 42 | $atoms{pos} = $self->create_atom | ||
| 43 | ( | ||
| 44 | 'surfeature' => 'pos', | ||
| 45 | 'decode_map' => | ||
| 46 | { | ||
| 47 | # noun | ||
| 48 | 'N' => ['pos' => 'noun'], | ||
| 49 | # adjective | ||
| 50 | 'A' => ['pos' => 'adj'], | ||
| 51 | # pronoun | ||
| 52 | 'P' => ['pos' => 'noun', 'prontype' => 'prn'], | ||
| 53 | # determiner (but not article) | ||
| 54 | 'D' => ['pos' => 'adj', 'prontype' => 'prn'], | ||
| 55 | # number | ||
| 56 | 'Z' => ['pos' => 'num'], | ||
| 57 | # date | ||
| 58 | # We don't have a specific feature for dates. Maybe we should use the 'other' feature. | ||
| 59 | 'W' => ['pos' => 'num', 'nountype' => 'prop'], | ||
| 60 | # verb | ||
| 61 | 'V' => ['pos' => 'verb'], | ||
| 62 | # adverb | ||
| 63 | 'R' => ['pos' => 'adv'], | ||
| 64 | # adposition | ||
| 65 | 'S' => ['pos' => 'adp', 'adpostype' => 'prep'], | ||
| 66 | # conjunction | ||
| 67 | 'C' => ['pos' => 'conj'], | ||
| 68 | # interjection | ||
| 69 | 'I' => ['pos' => 'int'], | ||
| 70 | # punctuation | ||
| 71 | 'F' => ['pos' => 'punc'] | ||
| 72 | }, | ||
| 73 | 'encode_map' => | ||
| 74 | { | ||
| 75 | 'pos' => { 'noun' => { 'prontype' => { '' => 'N', | ||
| 76 | '@' => 'P' }}, | ||
| 77 | 'adj' => { 'prontype' => { '' => 'A', | ||
| 78 | '@' => 'D' }}, | ||
| 79 | 'num' => { 'nountype' => { 'prop' => 'W', | ||
| 80 | '@' => 'Z' }}, | ||
| 81 | 'verb' => 'V', | ||
| 82 | 'adv' => 'R', | ||
| 83 | 'adp' => 'S', | ||
| 84 | 'conj' => 'C', | ||
| 85 | 'int' => 'I', | ||
| 86 | 'punc' => 'F' } | ||
| 87 | } | ||
| 88 | ); | ||
| 89 | # NOUNTYPE #################### | ||
| 90 | $atoms{nountype} = $self->create_simple_atom | ||
| 91 | ( | ||
| 92 | 'intfeature' => 'nountype', | ||
| 93 | 'simple_decode_map' => | ||
| 94 | { | ||
| 95 | 'C' => 'com', | ||
| 96 | 'P' => 'prop' | ||
| 97 | } | ||
| 98 | ); | ||
| 99 | # NAMETYPE #################### | ||
| 100 | $atoms{nametype} = $self->create_simple_atom | ||
| 101 | ( | ||
| 102 | 'intfeature' => 'nametype', | ||
| 103 | 'simple_decode_map' => | ||
| 104 | { | ||
| 105 | 'S' => 'prs', | ||
| 106 | 'G' => 'geo', | ||
| 107 | 'O' => 'com', | ||
| 108 | 'V' => 'oth' | ||
| 109 | }, | ||
| 110 | 'encode_default' => '0' | ||
| 111 | ); | ||
| 112 | # ADJTYPE #################### | ||
| 113 | $atoms{adjtype} = $self->create_atom | ||
| 114 | ( | ||
| 115 | 'surfeature' => 'adjtype', | ||
| 116 | 'decode_map' => | ||
| 117 | { | ||
| 118 | # qualificative adjective | ||
| 119 | 'Q' => [], | ||
| 120 | # possessive adjective | ||
| 121 | 'P' => ['poss' => 'yes'], | ||
| 122 | # ordinal numeral/adjective | ||
| 123 | 'O' => ['numtype' => 'ord'] | ||
| 124 | }, | ||
| 125 | 'encode_map' => | ||
| 126 | { | ||
| 127 | 'numtype' => { 'ord' => 'O', | ||
| 128 | '@' => { 'poss' => { 'yes' => 'P', | ||
| 129 | '@' => 'Q' }}} | ||
| 130 | } | ||
| 131 | ); | ||
| 132 | # PRONTYPE #################### | ||
| 133 | $atoms{prontype} = $self->create_atom | ||
| 134 | ( | ||
| 135 | 'surfeature' => 'prontype', | ||
| 136 | 'decode_map' => | ||
| 137 | { | ||
| 138 | # personal pronoun | ||
| 139 | # OR possessive determiner (depends on the first character of the tag) | ||
| 140 | 'P' => ['prontype' => 'prs'], | ||
| 141 | # article | ||
| 142 | 'A' => ['prontype' => 'art'], | ||
| 143 | # demonstrative pronoun | ||
| 144 | 'D' => ['prontype' => 'dem'], | ||
| 145 | # indefinite pronoun | ||
| 146 | 'I' => ['prontype' => 'ind'], | ||
| 147 | # interrogative pronoun | ||
| 148 | 'T' => ['prontype' => 'int'], | ||
| 149 | # relative pronoun | ||
| 150 | 'R' => ['prontype' => 'rel'], | ||
| 151 | # exclamative pronoun | ||
| 152 | 'E' => ['prontype' => 'exc'], | ||
| 153 | # numeral (?) | ||
| 154 | 'N' => ['numtype' => 'card'] | ||
| 155 | }, | ||
| 156 | 'encode_map' => | ||
| 157 | { | ||
| 158 | 'poss' => { 'yes' => 'P', | ||
| 159 | '@' => { 'prontype' => { 'prs' => 'P', | ||
| 160 | # Freeling does not allow article with pronoun ("PA"). | ||
| 161 | 'art' => { 'pos' => { 'noun' => 'D', | ||
| 162 | '@' => 'A' }}, | ||
| 163 | 'dem' => 'D', | ||
| 164 | 'ind' => 'I', | ||
| 165 | 'int' => 'T', | ||
| 166 | # Freeling does not allow relative determiner | ||
| 167 | # (see https://talp-upc.gitbooks.io/freeling-user-manual/content/tagsets/tagset-pt.html). | ||
| 168 | 'rel' => { 'pos' => { 'adj' => 'T', | ||
| 169 | '@' => 'R' }}, | ||
| 170 | 'exc' => 'E', | ||
| 171 | '@' => 'N' }}} | ||
| 172 | } | ||
| 173 | ); | ||
| 174 | # NUMTYPE #################### | ||
| 175 | # d: partitive; m: currency; p: ratio; u: unit | ||
| 176 | ###!!! | ||
| 177 | $atoms{numtype} = $self->create_atom | ||
| 178 | ( | ||
| 179 | 'surfeature' => 'numtype', | ||
| 180 | 'decode_map' => | ||
| 181 | { | ||
| 182 | }, | ||
| 183 | 'encode_map' => | ||
| 184 | { | ||
| 185 | 'numtype' => { '@' => '0' } | ||
| 186 | } | ||
| 187 | ); | ||
| 188 | # VERBTYPE #################### | ||
| 189 | $atoms{verbtype} = $self->create_atom | ||
| 190 | ( | ||
| 191 | 'surfeature' => 'verbtype', | ||
| 192 | 'decode_map' => | ||
| 193 | { | ||
| 194 | # main verb | ||
| 195 | 'M' => [], | ||
| 196 | # auxiliary verb | ||
| 197 | 'A' => ['verbtype' => 'aux'], | ||
| 198 | # semiauxiliary verb | ||
| 199 | 'S' => ['verbtype' => 'aux', 'other' => {'verbtype' => 'semi'}] | ||
| 200 | }, | ||
| 201 | 'encode_map' => | ||
| 202 | { | ||
| 203 | 'verbtype' => { 'aux' => { 'other/verbtype' => { 'semi' => 'S', | ||
| 204 | '@' => 'A' }}, | ||
| 205 | '@' => 'M' } | ||
| 206 | } | ||
| 207 | ); | ||
| 208 | # ADVTYPE #################### | ||
| 209 | $atoms{advtype} = $self->create_atom | ||
| 210 | ( | ||
| 211 | 'surfeature' => 'advtype', | ||
| 212 | 'decode_map' => | ||
| 213 | { | ||
| 214 | # general adverb | ||
| 215 | 'G' => [], | ||
| 216 | # negative adverb (particle) | ||
| 217 | 'N' => ['prontype' => 'neg'] | ||
| 218 | }, | ||
| 219 | 'encode_map' => | ||
| 220 | { | ||
| 221 | 'prontype' => { 'neg' => 'N', | ||
| 222 | '@' => 'G' } | ||
| 223 | } | ||
| 224 | ); | ||
| 225 | # CONJTYPE #################### | ||
| 226 | $atoms{conjtype} = $self->create_atom | ||
| 227 | ( | ||
| 228 | 'surfeature' => 'conjtype', | ||
| 229 | 'decode_map' => | ||
| 230 | { | ||
| 231 | # coordinating conjunction | ||
| 232 | 'C' => ['conjtype' => 'coor'], | ||
| 233 | # subordinating conjunction | ||
| 234 | 'S' => ['conjtype' => 'sub'] | ||
| 235 | }, | ||
| 236 | 'encode_map' => | ||
| 237 | { | ||
| 238 | 'conjtype' => { 'coor' => 'C', | ||
| 239 | 'sub' => 'S', | ||
| 240 | '@' => 'C' } | ||
| 241 | } | ||
| 242 | ); | ||
| 243 | # GENDER #################### | ||
| 244 | $atoms{gender} = $self->create_atom | ||
| 245 | ( | ||
| 246 | 'surfeature' => 'gender', | ||
| 247 | 'decode_map' => | ||
| 248 | { | ||
| 249 | 'M' => ['gender' => 'masc'], | ||
| 250 | 'F' => ['gender' => 'fem'], | ||
| 251 | 'N' => ['gender' => 'neut'], | ||
| 252 | # Common is not the common gender in the Scandinavian sense. It is just indistinguishable between M and F. | ||
| 253 | # That's why we do not set 'gender' => 'com'. | ||
| 254 | 'C' => ['other' => {'gender' => 'common'}] | ||
| 255 | }, | ||
| 256 | 'encode_map' => | ||
| 257 | { | ||
| 258 | 'gender' => { 'masc' => 'M', | ||
| 259 | 'fem' => 'F', | ||
| 260 | 'neut' => 'N', | ||
| 261 | '@' => { 'other/gender' => { 'common' => 'C', | ||
| 262 | '@' => '0' }}} | ||
| 263 | } | ||
| 264 | ); | ||
| 265 | # NUMBER #################### | ||
| 266 | $atoms{number} = $self->create_simple_atom | ||
| 267 | ( | ||
| 268 | 'intfeature' => 'number', | ||
| 269 | 'simple_decode_map' => | ||
| 270 | { | ||
| 271 | 'S' => 'sing', | ||
| 272 | 'P' => 'plur', | ||
| 273 | # Invariable. | ||
| 274 | #'N' => '' | ||
| 275 | }, | ||
| 276 | ###!!! We are conflating N and 0. Without a genuine list of tags and Portuguese examples, it is hard to say where either of them will occur. | ||
| 277 | 'encode_default' => '0' | ||
| 278 | ); | ||
| 279 | # CASE #################### | ||
| 280 | $atoms{case} = $self->create_simple_atom | ||
| 281 | ( | ||
| 282 | 'intfeature' => 'case', | ||
| 283 | 'simple_decode_map' => | ||
| 284 | { | ||
| 285 | 'N' => 'nom', | ||
| 286 | 'D' => 'dat', | ||
| 287 | 'A' => 'acc', | ||
| 288 | # Oblique. ###!!! What is it and how does it differ from the other cases? | ||
| 289 | #'O' => 'acc', | ||
| 290 | }, | ||
| 291 | 'encode_default' => '0' | ||
| 292 | ); | ||
| 293 | # DEGREE #################### | ||
| 294 | $atoms{degree} = $self->create_simple_atom | ||
| 295 | ( | ||
| 296 | 'intfeature' => 'degree', | ||
| 297 | 'simple_decode_map' => | ||
| 298 | { | ||
| 299 | # Evaluative. ###!!!??? | ||
| 300 | 'V' => 'pos', | ||
| 301 | 'S' => 'sup', | ||
| 302 | # For nouns: augmentative and diminutive. | ||
| 303 | 'A' => 'aug', | ||
| 304 | 'D' => 'dim' | ||
| 305 | }, | ||
| 306 | 'encode_default' => '0' | ||
| 307 | ); | ||
| 308 | # PERSON #################### | ||
| 309 | $atoms{person} = $self->create_atom | ||
| 310 | ( | ||
| 311 | 'surfeature' => 'person', | ||
| 312 | 'decode_map' => | ||
| 313 | { | ||
| 314 | '1' => ['person' => '1'], | ||
| 315 | '2' => ['person' => '2'], | ||
| 316 | '3' => ['person' => '3'] | ||
| 317 | }, | ||
| 318 | 'encode_map' => | ||
| 319 | { | ||
| 320 | 'person' => { '1' => '1', | ||
| 321 | '2' => '2', | ||
| 322 | '3' => '3', | ||
| 323 | '@' => '0' } | ||
| 324 | } | ||
| 325 | ); | ||
| 326 | # POLITENESS #################### | ||
| 327 | $atoms{polite} = $self->create_simple_atom | ||
| 328 | ( | ||
| 329 | 'intfeature' => 'polite', | ||
| 330 | 'simple_decode_map' => | ||
| 331 | { | ||
| 332 | 'P' => 'form' | ||
| 333 | }, | ||
| 334 | 'encode_default' => '0' | ||
| 335 | ); | ||
| 336 | # OWNER NUMBER #################### | ||
| 337 | $atoms{possnumber} = $self->create_simple_atom | ||
| 338 | ( | ||
| 339 | 'intfeature' => 'possnumber', | ||
| 340 | 'simple_decode_map' => | ||
| 341 | { | ||
| 342 | 'S' => 'sing', | ||
| 343 | 'P' => 'plur', | ||
| 344 | # Invariable. | ||
| 345 | #'N' => '' | ||
| 346 | }, | ||
| 347 | ###!!! We are conflating N and 0. Without a genuine list of tags and Portuguese examples, it is hard to say where either of them will occur. | ||
| 348 | 'encode_default' => '0' | ||
| 349 | ); | ||
| 350 | # VERB FORM #################### | ||
| 351 | $atoms{verbform} = $self->create_atom | ||
| 352 | ( | ||
| 353 | 'surfeature' => 'verbform', | ||
| 354 | 'decode_map' => | ||
| 355 | { | ||
| 356 | 'I' => ['verbform' => 'fin', 'mood' => 'ind'], | ||
| 357 | 'M' => ['verbform' => 'fin', 'mood' => 'imp'], | ||
| 358 | 'S' => ['verbform' => 'fin', 'mood' => 'sub'], | ||
| 359 | 'N' => ['verbform' => 'inf'], | ||
| 360 | # Past participle. | ||
| 361 | 'P' => ['verbform' => 'part'], | ||
| 362 | # Gerund (meaning present participle in Romance languages). | ||
| 363 | 'G' => ['verbform' => 'ger'] | ||
| 364 | }, | ||
| 365 | 'encode_map' => | ||
| 366 | { | ||
| 367 | 'mood' => { 'imp' => 'M', | ||
| 368 | 'sub' => 'S', | ||
| 369 | 'ind' => 'I', | ||
| 370 | # Conditional is considered a tense in Portuguese but a mood in Interset. | ||
| 371 | # Even in Portuguese we cannot say that it belongs to one of the existing moods, so it could be a mood of its own. | ||
| 372 | 'cnd' => '0', | ||
| 373 | '@' => { 'verbform' => { 'part' => 'P', | ||
| 374 | 'ger' => 'G', | ||
| 375 | 'inf' => 'N', | ||
| 376 | '@' => '0' }}} | ||
| 377 | } | ||
| 378 | ); | ||
| 379 | # TENSE #################### | ||
| 380 | $atoms{tense} = $self->create_atom | ||
| 381 | ( | ||
| 382 | 'surfeature' => 'tense', | ||
| 383 | 'decode_map' => | ||
| 384 | { | ||
| 385 | 'P' => ['tense' => 'pres'], | ||
| 386 | 'F' => ['tense' => 'fut'], | ||
| 387 | 'S' => ['tense' => 'past'], | ||
| 388 | 'I' => ['tense' => 'imp'], | ||
| 389 | 'M' => ['tense' => 'pqp'], | ||
| 390 | # Portuguese grammar treats conditional as a tense while in Interset it is a mood. | ||
| 391 | 'C' => ['mood' => 'cnd'] | ||
| 392 | }, | ||
| 393 | 'encode_map' => | ||
| 394 | { | ||
| 395 | 'mood' => { 'cnd' => 'C', | ||
| 396 | '@' => { 'tense' => { 'pres' => 'P', | ||
| 397 | 'fut' => 'F', | ||
| 398 | 'past' => 'S', | ||
| 399 | 'imp' => 'I', | ||
| 400 | 'pqp' => 'M', | ||
| 401 | '@' => '0' }}} | ||
| 402 | } | ||
| 403 | ); | ||
| 404 | # NEGATIVENESS #################### | ||
| 405 | $atoms{negativeness} = $self->create_simple_atom | ||
| 406 | ( | ||
| 407 | 'intfeature' => 'negativeness', | ||
| 408 | 'simple_decode_map' => | ||
| 409 | { | ||
| 410 | 'y' => 'neg', | ||
| 411 | 'n' => 'pos' | ||
| 412 | }, | ||
| 413 | 'encode_default' => '-' | ||
| 414 | ); | ||
| 415 | # ADVERB TYPE #################### | ||
| 416 | $atoms{adverb_type} = $self->create_atom | ||
| 417 | ( | ||
| 418 | 'surfeature' => 'adverb_type', | ||
| 419 | 'decode_map' => | ||
| 420 | { | ||
| 421 | # general adverb | ||
| 422 | 'G' => [], | ||
| 423 | # negative adverb | ||
| 424 | 'N' => ['prontype' => 'neg'], | ||
| 425 | }, | ||
| 426 | 'encode_map' => | ||
| 427 | { | ||
| 428 | 'prontype' => { 'neg' => 'N', | ||
| 429 | '@' => 'G' } | ||
| 430 | } | ||
| 431 | ); | ||
| 432 | # ADPOSITION TYPE #################### | ||
| 433 | $atoms{adpostype} = $self->create_atom | ||
| 434 | ( | ||
| 435 | 'surfeature' => 'adpostype', | ||
| 436 | 'decode_map' => | ||
| 437 | { | ||
| 438 | 'P' => ['adpostype' => 'prep'] | ||
| 439 | }, | ||
| 440 | 'encode_map' => | ||
| 441 | { | ||
| 442 | 'adpostype' => { '@' => 'P' } | ||
| 443 | } | ||
| 444 | ); | ||
| 445 | # PUNCTUATION TYPE #################### | ||
| 446 | $atoms{punctype} = $self->create_atom | ||
| 447 | ( | ||
| 448 | 'surfeature' => 'punctype', | ||
| 449 | 'decode_map' => | ||
| 450 | { | ||
| 451 | 'a' => ['punctype' => 'excl'], # exclamation mark | ||
| 452 | 'c' => ['punctype' => 'comm'], # comma | ||
| 453 | 'd' => ['punctype' => 'colo'], # colon | ||
| 454 | 'e' => ['punctype' => 'quot'], # quotation | ||
| 455 | 'g' => ['punctype' => 'dash'], # hyphen | ||
| 456 | 'h' => ['other' => {'punctype' => 'slash'}], # slash | ||
| 457 | 'i' => ['punctype' => 'qest'], # question mark | ||
| 458 | 'l' => ['punctype' => 'brck', 'other' => {'brcktype' => 'curly'}], # curly bracket | ||
| 459 | 'p' => ['punctype' => 'peri'], # period | ||
| 460 | 'r' => ['punctype' => 'quot'], # opening or closing quotation | ||
| 461 | 's' => ['other' => {'punctype' => 'etc'}], # etc | ||
| 462 | 't' => ['other' => {'punctype' => 'percent'}], # percentage | ||
| 463 | 'x' => ['punctype' => 'semi'], # semicolon | ||
| 464 | 'z' => [], # other | ||
| 465 | 'P' => ['punctype' => 'brck'], # parenthesis | ||
| 466 | 'C' => ['punctype' => 'brck', 'other' => {'brcktype' => 'square'}] # square bracket | ||
| 467 | }, | ||
| 468 | 'encode_map' => | ||
| 469 | { | ||
| 470 | 'punctype' => { 'colo' => 'd', | ||
| 471 | 'comm' => 'c', | ||
| 472 | 'dash' => 'g', | ||
| 473 | 'peri' => 'p', | ||
| 474 | 'semi' => 'x', | ||
| 475 | 'excl' => 'a', | ||
| 476 | 'qest' => 'i', | ||
| 477 | 'brck' => { 'other/brcktype' => { 'square' => 'c', | ||
| 478 | 'curly' => 'l', | ||
| 479 | '@' => 'p' }}, | ||
| 480 | 'quot' => { 'puncside' => { 'ini' => 'r', | ||
| 481 | 'fin' => 'r', | ||
| 482 | '@' => 'e' }}, | ||
| 483 | '@' => { 'other/punctype' => { 'etc' => 's', | ||
| 484 | 'percent' => 't', | ||
| 485 | 'slash' => 'h', | ||
| 486 | '@' => 'z' }}} | ||
| 487 | } | ||
| 488 | ); | ||
| 489 | # PUNCTUATION SIDE #################### | ||
| 490 | # Marking of terminating punctuation is inconsistent. It is 't' almost | ||
| 491 | # everywhere but it is 'c' in 'Frc'. | ||
| 492 | $atoms{puncside} = $self->create_atom | ||
| 493 | ( | ||
| 494 | 'surfeature' => 'puncside', | ||
| 495 | 'decode_map' => | ||
| 496 | { | ||
| 497 | 'a' => ['puncside' => 'ini'], | ||
| 498 | 't' => ['puncside' => 'fin'], | ||
| 499 | 'c' => ['puncside' => 'fin'] | ||
| 500 | }, | ||
| 501 | 'encode_map' => | ||
| 502 | { | ||
| 503 | 'puncside' => { 'ini' => 'a', | ||
| 504 | 'fin' => { 'punctype' => { 'quot' => 'c', | ||
| 505 | '@' => 't' }}, | ||
| 506 | '@' => '0' } | ||
| 507 | } | ||
| 508 | ); | ||
| 509 | return \%atoms; | ||
| 510 | } | ||
| 511 | |||
| 512 | |||
| 513 | |||
| 514 | #------------------------------------------------------------------------------ | ||
| 515 | # Creates a map that tells for each surface part of speech which features are | ||
| 516 | # relevant and in what order they appear. | ||
| 517 | #------------------------------------------------------------------------------ | ||
| 518 | sub _create_feature_map | ||
| 519 | { | ||
| 520 | my $self = shift; | ||
| 521 | my %features = | ||
| 522 | ( | ||
| 523 | # Declaring a feature as undef means that there will be always a zero at that position of the tag. | ||
| 524 | 'N' => ['pos', 'nountype', 'gender', 'number', 'nametype', undef, 'degree'], | ||
| 525 | 'A' => ['pos', 'adjtype', 'degree', 'gender', 'number', 'person', 'possnumber'], | ||
| 526 | 'P' => ['pos', 'prontype', 'person', 'gender', 'number', 'case', 'polite'], | ||
| 527 | 'D' => ['pos', 'prontype', 'person', 'gender', 'number', 'possnumber'], | ||
| 528 | 'Z' => ['pos'], # 'numtype' currently ignored | ||
| 529 | 'W' => ['pos'], | ||
| 530 | 'V' => ['pos', 'verbtype', 'verbform', 'tense', 'person', 'number', 'gender'], | ||
| 531 | 'R' => ['pos', 'advtype'], | ||
| 532 | 'S' => ['pos', 'adpostype'], | ||
| 533 | 'C' => ['pos', 'conjtype'], | ||
| 534 | 'I' => ['pos'], | ||
| 535 | 'F' => ['pos', 'punctype', 'puncside'] | ||
| 536 | ); | ||
| 537 | return \%features; | ||
| 538 | } | ||
| 539 | |||
| 540 | |||
| 541 | |||
| 542 | #------------------------------------------------------------------------------ | ||
| 543 | # Decodes a physical tag (string) and returns the corresponding feature | ||
| 544 | # structure. | ||
| 545 | #------------------------------------------------------------------------------ | ||
| 546 | sub decode | ||
| 547 | { | ||
| 548 | my $self = shift; | ||
| 549 | my $tag = shift; | ||
| 550 | # Modify ambiguous punctuation types so they work like atoms. | ||
| 551 | $tag =~ s/^Fp([at])$/FP$1/; | ||
| 552 | $tag =~ s/^Fc([at])$/FC$1/; | ||
| 553 | my $fs = Lingua::Interset::FeatureStructure->new(); | ||
| 554 | $fs->set_tagset($self->get_tagset_id()); | ||
| 555 | my $atoms = $self->atoms(); | ||
| 556 | my $features = $self->feature_map(); | ||
| 557 | my @chars = split(//, $tag); | ||
| 558 | $atoms->{pos}->decode_and_merge_hard($chars[0], $fs); | ||
| 559 | my @features; | ||
| 560 | @features = @{$features->{$chars[0]}} if(defined($features->{$chars[0]})); | ||
| 561 | for(my $i = 1; $i<=$#features; $i++) | ||
| 562 | { | ||
| 563 | if(defined($features[$i]) && defined($chars[$i])) | ||
| 564 | { | ||
| 565 | # Tagset drivers normally do not throw exceptions because they should be able to digest any input. | ||
| 566 | # However, if we know we expect a feature and we have not defined an atom to handle that feature, | ||
| 567 | # then it is an error of our code, not of the input data. | ||
| 568 | if(!defined($atoms->{$features[$i]})) | ||
| 569 | { | ||
| 570 | confess("There is no atom to handle the feature '$features[$i]'"); | ||
| 571 | } | ||
| 572 | $atoms->{$features[$i]}->decode_and_merge_hard($chars[$i], $fs); | ||
| 573 | } | ||
| 574 | } | ||
| 575 | return $fs; | ||
| 576 | } | ||
| 577 | |||
| 578 | |||
| 579 | |||
| 580 | #------------------------------------------------------------------------------ | ||
| 581 | # Takes feature structure and returns the corresponding physical tag (string). | ||
| 582 | #------------------------------------------------------------------------------ | ||
| 583 | sub encode | ||
| 584 | { | ||
| 585 | my $self = shift; | ||
| 586 | my $fs = shift; # Lingua::Interset::FeatureStructure | ||
| 587 | my $atoms = $self->atoms(); | ||
| 588 | my $features = $self->feature_map(); | ||
| 589 | my $tag = $atoms->{pos}->encode($fs); | ||
| 590 | my @features; | ||
| 591 | @features = @{$features->{$tag}} if(defined($features->{$tag})); | ||
| 592 | for(my $i = 1; $i<=$#features; $i++) | ||
| 593 | { | ||
| 594 | if(defined($features[$i])) | ||
| 595 | { | ||
| 596 | # Tagset drivers normally do not throw exceptions because they should be able to digest any input. | ||
| 597 | # However, if we know we expect a feature and we have not defined an atom to handle that feature, | ||
| 598 | # then it is an error of our code, not of the input data. | ||
| 599 | if(!defined($atoms->{$features[$i]})) | ||
| 600 | { | ||
| 601 | confess("There is no atom to handle the feature '$features[$i]'"); | ||
| 602 | } | ||
| 603 | $tag .= $atoms->{$features[$i]}->encode($fs); | ||
| 604 | } | ||
| 605 | else | ||
| 606 | { | ||
| 607 | $tag .= '0'; | ||
| 608 | } | ||
| 609 | } | ||
| 610 | # Even without 'other' being set, we can sometimes disambiguate between the common gender and 0. | ||
| 611 | $tag =~ s/^(N.)0/${1}C/; | ||
| 612 | $tag =~ s/^(A..)0/${1}C/; | ||
| 613 | $tag =~ s/^(A...)0/${1}N/; | ||
| 614 | # Remove trailing zeroes. | ||
| 615 | # I have seen only one sample of genuine data with this tagset, and it suggests that trailing | ||
| 616 | # zeroes are actually not removed, except for the punctuation tags, which are considered | ||
| 617 | # non-positional: | ||
| 618 | # O o DA0MS0 0.950254 | ||
| 619 | # primeiro primeiro AO0MS00 0.722944 | ||
| 620 | # ministro ministro NCMS000 0.99763 | ||
| 621 | # aprovou aprovar VMIS3S0 1 | ||
| 622 | # dois 2 Z 1 | ||
| 623 | # novos novo AQ0MP00 0.952586 | ||
| 624 | # regulamentos regulamento NCMP000 1 | ||
| 625 | # . . Fp 1 | ||
| 626 | $tag =~ s/^(F.)0+$/$1/; | ||
| 627 | return $tag; | ||
| 628 | } | ||
| 629 | |||
| 630 | |||
| 631 | |||
| 632 | #------------------------------------------------------------------------------ | ||
| 633 | # Returns reference to list of known tags. | ||
| 634 | #------------------------------------------------------------------------------ | ||
| 635 | sub list | ||
| 636 | { | ||
| 637 | my $self = shift; | ||
| 638 | my $list = <<end_of_list | ||
| 639 | NCMS000 | ||
| 640 | NCMS00A | ||
| 641 | NCMS00D | ||
| 642 | NCMP000 | ||
| 643 | NCMP00A | ||
| 644 | NCMP00D | ||
| 645 | NCFS000 | ||
| 646 | NCFS00A | ||
| 647 | NCFS00D | ||
| 648 | NCFP000 | ||
| 649 | NCFP00A | ||
| 650 | NCFP00D | ||
| 651 | NCCS000 | ||
| 652 | NCCP000 | ||
| 653 | NCNS000 | ||
| 654 | NPMSS00 | ||
| 655 | NPMSS0A | ||
| 656 | NPMSS0D | ||
| 657 | NPMPS00 | ||
| 658 | NPMPS0A | ||
| 659 | NPMPS0D | ||
| 660 | NPFSS00 | ||
| 661 | NPFSS0A | ||
| 662 | NPFSS0D | ||
| 663 | NPFPS00 | ||
| 664 | NPFPS0A | ||
| 665 | NPFPS0D | ||
| 666 | NPCSS00 | ||
| 667 | NPCPS00 | ||
| 668 | NPMSG00 | ||
| 669 | NPMPG00 | ||
| 670 | NPFSG00 | ||
| 671 | NPFPG00 | ||
| 672 | NPCSG00 | ||
| 673 | NPCPG00 | ||
| 674 | NPMSO00 | ||
| 675 | NPMPO00 | ||
| 676 | NPFSO00 | ||
| 677 | NPFPO00 | ||
| 678 | NPCSO00 | ||
| 679 | NPCPO00 | ||
| 680 | NPMSV00 | ||
| 681 | NPMPV00 | ||
| 682 | NPFSV00 | ||
| 683 | NPFPV00 | ||
| 684 | NPCSV00 | ||
| 685 | NPCPV00 | ||
| 686 | AQVMS00 | ||
| 687 | AQVMP00 | ||
| 688 | AQVFS00 | ||
| 689 | AQVFP00 | ||
| 690 | AQVCS00 | ||
| 691 | AQVCP00 | ||
| 692 | AQVCN00 | ||
| 693 | AQSMS00 | ||
| 694 | AQSMP00 | ||
| 695 | AQSFS00 | ||
| 696 | AQSFP00 | ||
| 697 | AQSCS00 | ||
| 698 | AQSCP00 | ||
| 699 | AQSCN00 | ||
| 700 | APVMS1S | ||
| 701 | APVMS2S | ||
| 702 | APVMS3S | ||
| 703 | APVMS1P | ||
| 704 | APVMS2P | ||
| 705 | APVMS3P | ||
| 706 | APVMP1S | ||
| 707 | APVMP2S | ||
| 708 | APVMP3S | ||
| 709 | APVMP1P | ||
| 710 | APVMP2P | ||
| 711 | APVMP3P | ||
| 712 | APVFS1S | ||
| 713 | APVFS2S | ||
| 714 | APVFS3S | ||
| 715 | APVFS1P | ||
| 716 | APVFS2P | ||
| 717 | APVFS3P | ||
| 718 | APVFP1S | ||
| 719 | APVFP2S | ||
| 720 | APVFP3S | ||
| 721 | APVFP1P | ||
| 722 | APVFP2P | ||
| 723 | APVFP3P | ||
| 724 | APVCS1S | ||
| 725 | APVCS2S | ||
| 726 | APVCS3S | ||
| 727 | APVCS1P | ||
| 728 | APVCS2P | ||
| 729 | APVCS3P | ||
| 730 | APVCP1S | ||
| 731 | APVCP2S | ||
| 732 | APVCP3S | ||
| 733 | APVCP1P | ||
| 734 | APVCP2P | ||
| 735 | APVCP3P | ||
| 736 | APVCN1S | ||
| 737 | APVCN2S | ||
| 738 | APVCN3S | ||
| 739 | APVCN1P | ||
| 740 | APVCN2P | ||
| 741 | APVCN3P | ||
| 742 | AO0MS00 | ||
| 743 | AO0MP00 | ||
| 744 | AO0FS00 | ||
| 745 | AO0FP00 | ||
| 746 | AO0CS00 | ||
| 747 | AO0CP00 | ||
| 748 | AO0CN00 | ||
| 749 | PP10SN0 | ||
| 750 | PP10SD0 | ||
| 751 | PP10SA0 | ||
| 752 | PP20SN0 | ||
| 753 | PP20SD0 | ||
| 754 | PP20SA0 | ||
| 755 | PP20SNP | ||
| 756 | PP20SDP | ||
| 757 | PP20SAP | ||
| 758 | PP3MSN0 | ||
| 759 | PP3MSD0 | ||
| 760 | PP3MSA0 | ||
| 761 | PP3FSN0 | ||
| 762 | PP3FSD0 | ||
| 763 | PP3FSA0 | ||
| 764 | PP10PN0 | ||
| 765 | PP10PD0 | ||
| 766 | PP10PA0 | ||
| 767 | PP20PN0 | ||
| 768 | PP20PD0 | ||
| 769 | PP20PA0 | ||
| 770 | PP20PNP | ||
| 771 | PP20PDP | ||
| 772 | PP20PAP | ||
| 773 | PP3MPN0 | ||
| 774 | PP3MPD0 | ||
| 775 | PP3MPA0 | ||
| 776 | PP3FPN0 | ||
| 777 | PP3FPD0 | ||
| 778 | PP3FPA0 | ||
| 779 | PD00000 | ||
| 780 | PT00000 | ||
| 781 | PR00000 | ||
| 782 | PE00000 | ||
| 783 | DA0MS0 | ||
| 784 | DA0FS0 | ||
| 785 | DA0MP0 | ||
| 786 | DA0FP0 | ||
| 787 | DP1MSS | ||
| 788 | DP1MPS | ||
| 789 | DP1FSS | ||
| 790 | DP1FPS | ||
| 791 | DP2MSS | ||
| 792 | DP2MPS | ||
| 793 | DP2FSS | ||
| 794 | DP2FPS | ||
| 795 | DP3MSS | ||
| 796 | DP3MPS | ||
| 797 | DP3FSS | ||
| 798 | DP3FPS | ||
| 799 | DP1MSP | ||
| 800 | DP1MPP | ||
| 801 | DP1FSP | ||
| 802 | DP1FPP | ||
| 803 | DP2MSP | ||
| 804 | DP2MPP | ||
| 805 | DP2FSP | ||
| 806 | DP2FPP | ||
| 807 | DP3MSP | ||
| 808 | DP3MPP | ||
| 809 | DP3FSP | ||
| 810 | DP3FPP | ||
| 811 | DD0MS0 | ||
| 812 | DD0FS0 | ||
| 813 | DD0MP0 | ||
| 814 | DD0FP0 | ||
| 815 | DT0000 | ||
| 816 | DE0000 | ||
| 817 | Z | ||
| 818 | W | ||
| 819 | VMN0000 | ||
| 820 | VMIP1S0 | ||
| 821 | VMIP2S0 | ||
| 822 | VMIP3S0 | ||
| 823 | VMIP1P0 | ||
| 824 | VMIP2P0 | ||
| 825 | VMIP3P0 | ||
| 826 | VMIF1S0 | ||
| 827 | VMIF2S0 | ||
| 828 | VMIF3S0 | ||
| 829 | VMIF1P0 | ||
| 830 | VMIF2P0 | ||
| 831 | VMIF3P0 | ||
| 832 | VMIS1S0 | ||
| 833 | VMIS2S0 | ||
| 834 | VMIS3S0 | ||
| 835 | VMIS1P0 | ||
| 836 | VMIS2P0 | ||
| 837 | VMIS3P0 | ||
| 838 | VMII1S0 | ||
| 839 | VMII2S0 | ||
| 840 | VMII3S0 | ||
| 841 | VMII1P0 | ||
| 842 | VMII2P0 | ||
| 843 | VMII3P0 | ||
| 844 | VMIM1S0 | ||
| 845 | VMIM2S0 | ||
| 846 | VMIM3S0 | ||
| 847 | VMIM1P0 | ||
| 848 | VMIM2P0 | ||
| 849 | VMIM3P0 | ||
| 850 | VMSP1S0 | ||
| 851 | VMSP2S0 | ||
| 852 | VMSP3S0 | ||
| 853 | VMSP1P0 | ||
| 854 | VMSP2P0 | ||
| 855 | VMSP3P0 | ||
| 856 | VMSF1S0 | ||
| 857 | VMSF2S0 | ||
| 858 | VMSF3S0 | ||
| 859 | VMSF1P0 | ||
| 860 | VMSF2P0 | ||
| 861 | VMSF3P0 | ||
| 862 | VMSI1S0 | ||
| 863 | VMSI2S0 | ||
| 864 | VMSI3S0 | ||
| 865 | VMSI1P0 | ||
| 866 | VMSI2P0 | ||
| 867 | VMSI3P0 | ||
| 868 | VM0C1S0 | ||
| 869 | VM0C2S0 | ||
| 870 | VM0C3S0 | ||
| 871 | VM0C1P0 | ||
| 872 | VM0C2P0 | ||
| 873 | VM0C3P0 | ||
| 874 | VMM02S0 | ||
| 875 | VMM03S0 | ||
| 876 | VMM01P0 | ||
| 877 | VMM02P0 | ||
| 878 | VMM03P0 | ||
| 879 | VMPS0SM | ||
| 880 | VMPS0SF | ||
| 881 | VMPS0PM | ||
| 882 | VMPS0PF | ||
| 883 | VMGP0SM | ||
| 884 | VMGP0SF | ||
| 885 | VMGP0PM | ||
| 886 | VMGP0PF | ||
| 887 | VAN0000 | ||
| 888 | VAIP1S0 | ||
| 889 | VAIP2S0 | ||
| 890 | VAIP3S0 | ||
| 891 | VAIP1P0 | ||
| 892 | VAIP2P0 | ||
| 893 | VAIP3P0 | ||
| 894 | VAIF1S0 | ||
| 895 | VAIF2S0 | ||
| 896 | VAIF3S0 | ||
| 897 | VAIF1P0 | ||
| 898 | VAIF2P0 | ||
| 899 | VAIF3P0 | ||
| 900 | VAIS1S0 | ||
| 901 | VAIS2S0 | ||
| 902 | VAIS3S0 | ||
| 903 | VAIS1P0 | ||
| 904 | VAIS2P0 | ||
| 905 | VAIS3P0 | ||
| 906 | VAII1S0 | ||
| 907 | VAII2S0 | ||
| 908 | VAII3S0 | ||
| 909 | VAII1P0 | ||
| 910 | VAII2P0 | ||
| 911 | VAII3P0 | ||
| 912 | VAIM1S0 | ||
| 913 | VAIM2S0 | ||
| 914 | VAIM3S0 | ||
| 915 | VAIM1P0 | ||
| 916 | VAIM2P0 | ||
| 917 | VAIM3P0 | ||
| 918 | VASP1S0 | ||
| 919 | VASP2S0 | ||
| 920 | VASP3S0 | ||
| 921 | VASP1P0 | ||
| 922 | VASP2P0 | ||
| 923 | VASP3P0 | ||
| 924 | VASF1S0 | ||
| 925 | VASF2S0 | ||
| 926 | VASF3S0 | ||
| 927 | VASF1P0 | ||
| 928 | VASF2P0 | ||
| 929 | VASF3P0 | ||
| 930 | VASI1S0 | ||
| 931 | VASI2S0 | ||
| 932 | VASI3S0 | ||
| 933 | VASI1P0 | ||
| 934 | VASI2P0 | ||
| 935 | VASI3P0 | ||
| 936 | VA0C1S0 | ||
| 937 | VA0C2S0 | ||
| 938 | VA0C3S0 | ||
| 939 | VA0C1P0 | ||
| 940 | VA0C2P0 | ||
| 941 | VA0C3P0 | ||
| 942 | VAM02S0 | ||
| 943 | VAM03S0 | ||
| 944 | VAM01P0 | ||
| 945 | VAM02P0 | ||
| 946 | VAM03P0 | ||
| 947 | VAPS0SM | ||
| 948 | VAPS0SF | ||
| 949 | VAPS0PM | ||
| 950 | VAPS0PF | ||
| 951 | VAGP0SM | ||
| 952 | VAGP0SF | ||
| 953 | VAGP0PM | ||
| 954 | VAGP0PF | ||
| 955 | VSN0000 | ||
| 956 | VSIP1S0 | ||
| 957 | VSIP2S0 | ||
| 958 | VSIP3S0 | ||
| 959 | VSIP1P0 | ||
| 960 | VSIP2P0 | ||
| 961 | VSIP3P0 | ||
| 962 | VSIF1S0 | ||
| 963 | VSIF2S0 | ||
| 964 | VSIF3S0 | ||
| 965 | VSIF1P0 | ||
| 966 | VSIF2P0 | ||
| 967 | VSIF3P0 | ||
| 968 | VSIS1S0 | ||
| 969 | VSIS2S0 | ||
| 970 | VSIS3S0 | ||
| 971 | VSIS1P0 | ||
| 972 | VSIS2P0 | ||
| 973 | VSIS3P0 | ||
| 974 | VSII1S0 | ||
| 975 | VSII2S0 | ||
| 976 | VSII3S0 | ||
| 977 | VSII1P0 | ||
| 978 | VSII2P0 | ||
| 979 | VSII3P0 | ||
| 980 | VSIM1S0 | ||
| 981 | VSIM2S0 | ||
| 982 | VSIM3S0 | ||
| 983 | VSIM1P0 | ||
| 984 | VSIM2P0 | ||
| 985 | VSIM3P0 | ||
| 986 | VSSP1S0 | ||
| 987 | VSSP2S0 | ||
| 988 | VSSP3S0 | ||
| 989 | VSSP1P0 | ||
| 990 | VSSP2P0 | ||
| 991 | VSSP3P0 | ||
| 992 | VSSF1S0 | ||
| 993 | VSSF2S0 | ||
| 994 | VSSF3S0 | ||
| 995 | VSSF1P0 | ||
| 996 | VSSF2P0 | ||
| 997 | VSSF3P0 | ||
| 998 | VSSI1S0 | ||
| 999 | VSSI2S0 | ||
| 1000 | VSSI3S0 | ||
| 1001 | VSSI1P0 | ||
| 1002 | VSSI2P0 | ||
| 1003 | VSSI3P0 | ||
| 1004 | VS0C1S0 | ||
| 1005 | VS0C2S0 | ||
| 1006 | VS0C3S0 | ||
| 1007 | VS0C1P0 | ||
| 1008 | VS0C2P0 | ||
| 1009 | VS0C3P0 | ||
| 1010 | VSM02S0 | ||
| 1011 | VSM03S0 | ||
| 1012 | VSM01P0 | ||
| 1013 | VSM02P0 | ||
| 1014 | VSM03P0 | ||
| 1015 | VSPS0SM | ||
| 1016 | VSPS0SF | ||
| 1017 | VSPS0PM | ||
| 1018 | VSPS0PF | ||
| 1019 | VSGP0SM | ||
| 1020 | VSGP0SF | ||
| 1021 | VSGP0PM | ||
| 1022 | VSGP0PF | ||
| 1023 | RG | ||
| 1024 | RN | ||
| 1025 | SP | ||
| 1026 | CC | ||
| 1027 | CS | ||
| 1028 | I | ||
| 1029 | Fd | ||
| 1030 | Fc | ||
| 1031 | Fs | ||
| 1032 | Faa | ||
| 1033 | Fat | ||
| 1034 | Fg | ||
| 1035 | Fz | ||
| 1036 | Ft | ||
| 1037 | Fp | ||
| 1038 | Fia | ||
| 1039 | Fit | ||
| 1040 | Fe | ||
| 1041 | Fra | ||
| 1042 | Frc | ||
| 1043 | Fx | ||
| 1044 | Fh | ||
| 1045 | Fpa | ||
| 1046 | Fpt | ||
| 1047 | Fca | ||
| 1048 | Fct | ||
| 1049 | Fla | ||
| 1050 | Flt | ||
| 1051 | end_of_list | ||
| 1052 | ; | ||
| 1053 | my @list = split(/\r?\n/, $list); | ||
| 1054 | pop(@list) if($list[$#list] eq ''); | ||
| 1055 | return \@list; | ||
| 1056 | } | ||
| 1057 | |||
| 1058 | |||
| 1059 | |||
| 1060 | 1; | ||
| 1061 | |||
| 1062 | __END__ | ||
| 1063 | |||
| 1064 | =pod | ||
| 1065 | |||
| 1066 | =encoding UTF-8 | ||
| 1067 | |||
| 1068 | =head1 NAME | ||
| 1069 | |||
| 1070 | Lingua::Interset::Tagset::PT::Freeling - Driver for the EAGLES-based tagset for Portuguese in Freeling. | ||
| 1071 | |||
| 1072 | =head1 VERSION | ||
| 1073 | |||
| 1074 | version 3.015 | ||
| 1075 | |||
| 1076 | =head1 SYNOPSIS | ||
| 1077 | |||
| 1078 | use Lingua::Interset::Tagset::PT::Freeling; | ||
| 1079 | my $driver = Lingua::Interset::Tagset::PT::Freeling->new(); | ||
| 1080 | my $fs = $driver->decode('NCMS000'); | ||
| 1081 | |||
| 1082 | or | ||
| 1083 | |||
| 1084 | use Lingua::Interset qw(decode); | ||
| 1085 | my $fs = decode('pt::freeling', 'NCMS000'); | ||
| 1086 | |||
| 1087 | =head1 DESCRIPTION | ||
| 1088 | |||
| 1089 | Interset driver for the EAGLES-based Portuguese tagset from the Freeling project | ||
| 1090 | (L<http://talp-upc.gitbooks.io/freeling-user-manual/content/tagsets/tagset-pt.html>). | ||
| 1091 | |||
| 1092 | =head1 SEE ALSO | ||
| 1093 | |||
| 1094 | L<Lingua::Interset>, | ||
| 1095 | L<Lingua::Interset::Tagset>, | ||
| 1096 | L<Lingua::Interset::FeatureStructure> | ||
| 1097 | |||
| 1098 | =head1 AUTHOR | ||
| 1099 | |||
| 1100 | Dan Zeman <zeman@ufal.mff.cuni.cz> | ||
| 1101 | |||
| 1102 | =head1 COPYRIGHT AND LICENSE | ||
| 1103 | |||
| 1104 | This software is copyright (c) 2019 by Univerzita Karlova (Charles University). | ||
| 1105 | |||
| 1106 | This is free software; you can redistribute it and/or modify it under | ||
| 1107 | the same terms as the Perl 5 programming language system itself. | ||
| 1108 | |||
| 1109 | =cut |