| 1 | # ABSTRACT: Driver for the Faroese tagset provided by Bjartensen. | ||
| 2 | # See also https://github.com/UniversalDependencies/docs/issues/336 | ||
| 3 | # The corpus where this tagset is used can be downloaded from http://stava.fo/ ("Markað tekstasavn"). | ||
| 4 | # The corpus originates at Føroyamálsdeildin (Department of the Faroese Language and Literature), Fróðskaparsetur Føroya (University of Faroe Islands), | ||
| 5 | # although I was not able to find it directly at their website (http://setur.fo/en/language-and-literature/department/). | ||
| 6 | # Copyright © 2016, 2017 Dan Zeman <zeman@ufal.mff.cuni.cz> | ||
| 7 | |||
| 8 | package Lingua::Interset::Tagset::FO::Setur; | ||
| 9 | use strict; | ||
| 10 | use warnings; | ||
| 11 | our $VERSION = '3.015'; | ||
| 12 | |||
| 13 | use utf8; | ||
| 14 | use open ':utf8'; | ||
| 15 | use namespace::autoclean; | ||
| 16 | use Moose; | ||
| 17 | extends 'Lingua::Interset::Tagset'; | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | has 'atoms' => ( isa => 'HashRef', is => 'ro', builder => '_create_atoms', lazy => 1 ); | ||
| 22 | has 'feature_map' => ( isa => 'HashRef', is => 'ro', builder => '_create_feature_map', lazy => 1 ); | ||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | #------------------------------------------------------------------------------ | ||
| 27 | # Returns the tagset id that should be set as the value of the 'tagset' feature | ||
| 28 | # during decoding. Every derived class must (re)define this method! The result | ||
| 29 | # should correspond to the last two parts in package name, lowercased. | ||
| 30 | # Specifically, it should be the ISO 639-2 language code, followed by '::' and | ||
| 31 | # a language-specific tagset id. Example: 'cs::multext'. | ||
| 32 | #------------------------------------------------------------------------------ | ||
| 33 | sub get_tagset_id | ||
| 34 | { | ||
| 35 | return 'fo::setur'; | ||
| 36 | } | ||
| 37 | |||
| 38 | |||
| 39 | |||
| 40 | #------------------------------------------------------------------------------ | ||
| 41 | # Creates atomic drivers for surface features. | ||
| 42 | #------------------------------------------------------------------------------ | ||
| 43 | sub _create_atoms | ||
| 44 | { | ||
| 45 | my $self = shift; | ||
| 46 | my %atoms; | ||
| 47 | # PART OF SPEECH #################### | ||
| 48 | $atoms{pos} = $self->create_atom | ||
| 49 | ( | ||
| 50 | 'surfeature' => 'pos', | ||
| 51 | 'decode_map' => | ||
| 52 | { | ||
| 53 | # substantiv / noun | ||
| 54 | 'S' => ['pos' => 'noun'], | ||
| 55 | # adjective | ||
| 56 | 'A' => ['pos' => 'adj'], | ||
| 57 | # pronomen / pronoun | ||
| 58 | 'P' => ['pos' => 'noun', 'prontype' => 'prn'], | ||
| 59 | # numeral | ||
| 60 | 'N' => ['pos' => 'num'], | ||
| 61 | # verb | ||
| 62 | 'V' => ['pos' => 'verb'], | ||
| 63 | # adverb | ||
| 64 | 'D' => ['pos' => 'adv'], | ||
| 65 | # conjunction | ||
| 66 | 'C' => ['pos' => 'conj'], | ||
| 67 | # preposition | ||
| 68 | 'E' => ['pos' => 'adp'], | ||
| 69 | # interjection | ||
| 70 | 'I' => ['pos' => 'int'], | ||
| 71 | # foreign word | ||
| 72 | 'F' => ['foreign' => 'yes'], | ||
| 73 | # unanalyzed word | ||
| 74 | 'X' => [], | ||
| 75 | # abbreviation | ||
| 76 | 'T' => ['abbr' => 'yes'] | ||
| 77 | }, | ||
| 78 | 'encode_map' => | ||
| 79 | { | ||
| 80 | 'abbr' => { 'yes' => 'T', | ||
| 81 | '@' => { 'foreign' => { 'yes' => 'F', | ||
| 82 | '@' => { 'pos' => { 'noun' => { 'prontype' => { '' => 'S', | ||
| 83 | '@' => 'P' }}, | ||
| 84 | 'adj' => 'A', | ||
| 85 | 'num' => 'N', | ||
| 86 | 'verb' => 'V', | ||
| 87 | 'adv' => 'D', | ||
| 88 | 'conj' => 'C', | ||
| 89 | 'adp' => 'E', | ||
| 90 | 'int' => 'I', | ||
| 91 | '@' => 'X' }}}}} | ||
| 92 | } | ||
| 93 | ); | ||
| 94 | # GENDER #################### | ||
| 95 | $atoms{gender} = $self->create_simple_atom | ||
| 96 | ( | ||
| 97 | 'intfeature' => 'gender', | ||
| 98 | 'simple_decode_map' => | ||
| 99 | { | ||
| 100 | 'M' => 'masc', | ||
| 101 | 'F' => 'fem', | ||
| 102 | 'N' => 'neut', | ||
| 103 | 'X' => '' | ||
| 104 | }, | ||
| 105 | 'encode_default' => 'X' | ||
| 106 | ); | ||
| 107 | # NUMBER #################### | ||
| 108 | $atoms{number} = $self->create_simple_atom | ||
| 109 | ( | ||
| 110 | 'intfeature' => 'number', | ||
| 111 | 'simple_decode_map' => | ||
| 112 | { | ||
| 113 | 'S' => 'sing', | ||
| 114 | 'P' => 'plur' | ||
| 115 | }, | ||
| 116 | 'encode_default' => 'X' | ||
| 117 | ); | ||
| 118 | # CASE #################### | ||
| 119 | # also used as valency feature of adverbs and prepositions; then N means "does not govern case" | ||
| 120 | $atoms{case} = $self->create_simple_atom | ||
| 121 | ( | ||
| 122 | 'intfeature' => 'case', | ||
| 123 | 'simple_decode_map' => | ||
| 124 | { | ||
| 125 | 'N' => 'nom', | ||
| 126 | 'A' => 'acc', | ||
| 127 | 'D' => 'dat', | ||
| 128 | 'G' => 'gen' | ||
| 129 | }, | ||
| 130 | 'encode_default' => 'X' | ||
| 131 | ); | ||
| 132 | # DEFINITENESS #################### | ||
| 133 | $atoms{definiteness} = $self->create_simple_atom | ||
| 134 | ( | ||
| 135 | 'intfeature' => 'definite', | ||
| 136 | 'simple_decode_map' => | ||
| 137 | { | ||
| 138 | # definite (i.e. with suffixed definite article) | ||
| 139 | 'A' => 'def' | ||
| 140 | }, | ||
| 141 | 'encode_default' => 'X' | ||
| 142 | ); | ||
| 143 | # NAME TYPE #################### | ||
| 144 | $atoms{nametype} = $self->create_atom | ||
| 145 | ( | ||
| 146 | 'surfeature' => 'nametype', | ||
| 147 | 'decode_map' => | ||
| 148 | { | ||
| 149 | 'P' => ['nountype' => 'prop', 'nametype' => 'prs'], | ||
| 150 | 'L' => ['nountype' => 'prop', 'nametype' => 'geo'] | ||
| 151 | }, | ||
| 152 | 'encode_map' => | ||
| 153 | { | ||
| 154 | 'nametype' => { 'prs' => 'P', | ||
| 155 | 'geo' => 'L', | ||
| 156 | '@' => 'X' } | ||
| 157 | } | ||
| 158 | ); | ||
| 159 | # DEGREE OF COMPARISON #################### | ||
| 160 | $atoms{degree} = $self->create_simple_atom | ||
| 161 | ( | ||
| 162 | 'intfeature' => 'degree', | ||
| 163 | 'simple_decode_map' => | ||
| 164 | { | ||
| 165 | 'P' => 'pos', | ||
| 166 | 'C' => 'cmp', | ||
| 167 | 'S' => 'sup' | ||
| 168 | }, | ||
| 169 | 'encode_default' => 'X' | ||
| 170 | ); | ||
| 171 | # DECLENSION OF ADJECTIVES #################### | ||
| 172 | $atoms{declension} = $self->create_atom | ||
| 173 | ( | ||
| 174 | 'surfeature' => 'declension', | ||
| 175 | 'decode_map' => | ||
| 176 | { | ||
| 177 | 'S' => ['other' => {'declension' => 'strong'}], | ||
| 178 | 'W' => ['other' => {'declension' => 'weak'}], | ||
| 179 | 'I' => ['other' => {'declension' => 'indeclinable'}] | ||
| 180 | }, | ||
| 181 | 'encode_map' => | ||
| 182 | { | ||
| 183 | 'other/declension' => { 'indeclinable' => 'I', | ||
| 184 | 'strong' => 'S', | ||
| 185 | 'weak' => 'W', | ||
| 186 | '@' => 'S' } | ||
| 187 | } | ||
| 188 | ); | ||
| 189 | # PRONOUN TYPE #################### | ||
| 190 | # 1st and 2nd person pronouns lack the pronoun type and have person instead of gender: P1SN ("eg" = "I") vs. PDMSN ("hesin", "tann") | ||
| 191 | # 3rd person, possessive and interrogative pronouns have no prontype and the second character is gender. We insert '3' before decoding. | ||
| 192 | # PMSN hann, hvør | ||
| 193 | # PMSG hansara, sín, sínar, síni | ||
| 194 | # PMSD honum, sínum, sær, hvørjum | ||
| 195 | # PMSA hann, sín, sína, seg, hvønn | ||
| 196 | # PMPN teir | ||
| 197 | # PMPG teirra, síni | ||
| 198 | # PMPD teimum, sínum, sær | ||
| 199 | # PMPA teir, sínar, seg | ||
| 200 | # PFSN hon, hvør | ||
| 201 | # PFSG hennara, sína | ||
| 202 | # PFSD henni, sær, hvør | ||
| 203 | # PFSA hana, sína, seg, hvørja | ||
| 204 | # PFPN tær, hvørjar | ||
| 205 | # PFPG teirra | ||
| 206 | # PFPD teimum, sínum, sær | ||
| 207 | # PFPA tær, sínar, seg, hvørjar | ||
| 208 | # PNSN tað, hvat | ||
| 209 | # PNSG tess, síni, sítt | ||
| 210 | # PNSD tí, sínum, sær | ||
| 211 | # PNSA tað, sína, sítt, seg, hvat | ||
| 212 | # PNPN tey, øll | ||
| 213 | # PNPG teirra, síni | ||
| 214 | # PNPD teimum, sínum, sær | ||
| 215 | # PNPA tey, sínar, síni, seg | ||
| 216 | $atoms{prontype} = $self->create_atom | ||
| 217 | ( | ||
| 218 | 'surfeature' => 'prontype', | ||
| 219 | 'decode_map' => | ||
| 220 | { | ||
| 221 | 'D' => ['prontype' => 'dem'], | ||
| 222 | 'I' => ['prontype' => 'ind'], | ||
| 223 | '1' => ['prontype' => 'prs', 'person' => '1'], | ||
| 224 | '2' => ['prontype' => 'prs', 'person' => '2'], | ||
| 225 | '3' => ['prontype' => 'prs', 'person' => '3'] | ||
| 226 | }, | ||
| 227 | 'encode_map' => | ||
| 228 | { | ||
| 229 | 'prontype' => { 'dem' => 'D', | ||
| 230 | 'prs' => { 'person' => { '1' => '1', | ||
| 231 | '2' => '2', | ||
| 232 | '@' => '3' }}, | ||
| 233 | '@' => 'I' } | ||
| 234 | } | ||
| 235 | ); | ||
| 236 | # NUMERAL TYPE #################### | ||
| 237 | $atoms{numtype} = $self->create_atom | ||
| 238 | ( | ||
| 239 | 'surfeature' => 'numtype', | ||
| 240 | 'decode_map' => | ||
| 241 | { | ||
| 242 | 'C' => ['numtype' => 'card'], | ||
| 243 | 'O' => ['numtype' => 'ord'], | ||
| 244 | # there is a typo in the corpus with "triðju" | ||
| 245 | '0' => ['numtype' => 'ord'] | ||
| 246 | }, | ||
| 247 | 'encode_map' => | ||
| 248 | { | ||
| 249 | 'numtype' => { 'ord' => 'O', | ||
| 250 | '@' => 'C' } | ||
| 251 | } | ||
| 252 | ); | ||
| 253 | # VERB FORM AND MOOD #################### | ||
| 254 | $atoms{verbform} = $self->create_atom | ||
| 255 | ( | ||
| 256 | 'surfeature' => 'verbform', | ||
| 257 | 'decode_map' => | ||
| 258 | { | ||
| 259 | 'I' => ['verbform' => 'inf'], | ||
| 260 | 'M' => ['verbform' => 'fin', 'mood' => 'imp'], | ||
| 261 | 'N' => ['verbform' => 'fin', 'mood' => 'ind'], | ||
| 262 | 'S' => ['verbform' => 'fin', 'mood' => 'sub'], | ||
| 263 | 'P' => ['verbform' => 'part', 'tense' => 'pres'], | ||
| 264 | 'A' => ['verbform' => 'part', 'tense' => 'past'], | ||
| 265 | # this seems to be middle voice because the forms are infinitive + the suffix "-st" | ||
| 266 | 'E' => ['verbform' => 'fin', 'voice' => 'mid'], | ||
| 267 | 'e' => ['verbform' => 'inf', 'voice' => 'mid'] # our modification to distinguish middle/passive infinitive from finite forms | ||
| 268 | }, | ||
| 269 | 'encode_map' => | ||
| 270 | { | ||
| 271 | 'verbform' => { 'fin' => { 'mood' => { 'imp' => 'M', | ||
| 272 | 'sub' => 'S', | ||
| 273 | '@' => { 'voice' => { 'mid' => 'E', | ||
| 274 | 'pass' => 'E', | ||
| 275 | '@' => 'N' }}}}, | ||
| 276 | 'part' => { 'tense' => { 'pres' => 'P', | ||
| 277 | '@' => 'A' }}, | ||
| 278 | '@' => { 'voice' => { 'mid' => 'E', | ||
| 279 | 'pass' => 'E', | ||
| 280 | '@' => 'I' }}} | ||
| 281 | } | ||
| 282 | ); | ||
| 283 | # TENSE #################### | ||
| 284 | $atoms{tense} = $self->create_simple_atom | ||
| 285 | ( | ||
| 286 | 'intfeature' => 'tense', | ||
| 287 | 'simple_decode_map' => | ||
| 288 | { | ||
| 289 | 'P' => 'pres', | ||
| 290 | 'A' => 'past' | ||
| 291 | }, | ||
| 292 | 'encode_default' => 'X' | ||
| 293 | ); | ||
| 294 | # PERSON #################### | ||
| 295 | $atoms{person} = $self->create_simple_atom | ||
| 296 | ( | ||
| 297 | 'intfeature' => 'person', | ||
| 298 | 'simple_decode_map' => | ||
| 299 | { | ||
| 300 | '1' => '1', | ||
| 301 | '2' => '2', | ||
| 302 | '3' => '3' | ||
| 303 | }, | ||
| 304 | 'encode_default' => 'X' | ||
| 305 | ); | ||
| 306 | # CONJUNCTION TYPE #################### | ||
| 307 | $atoms{conjtype} = $self->create_atom | ||
| 308 | ( | ||
| 309 | 'surfeature' => 'conjtype', | ||
| 310 | 'decode_map' => | ||
| 311 | { | ||
| 312 | 'I' => ['conjtype' => 'sub', 'verbform' => 'inf'], # infinitive marker | ||
| 313 | 'R' => ['conjtype' => 'sub'] # relative conjunction | ||
| 314 | }, | ||
| 315 | 'encode_map' => | ||
| 316 | { | ||
| 317 | 'conjtype' => { 'sub' => { 'verbform' => { 'inf' => 'I', | ||
| 318 | '@' => 'R' }}, | ||
| 319 | '@' => 'X' } | ||
| 320 | } | ||
| 321 | ); | ||
| 322 | return \%atoms; | ||
| 323 | } | ||
| 324 | |||
| 325 | |||
| 326 | |||
| 327 | #------------------------------------------------------------------------------ | ||
| 328 | # Creates a map that tells for each surface part of speech which features are | ||
| 329 | # relevant and in what order they appear. | ||
| 330 | #------------------------------------------------------------------------------ | ||
| 331 | sub _create_feature_map | ||
| 332 | { | ||
| 333 | my $self = shift; | ||
| 334 | my %features = | ||
| 335 | ( | ||
| 336 | # Nouns with gender (i.e. they don't start SX) always have the first four features. | ||
| 337 | # Then the definiteness is optional and the combinations may be empty or A, L, P, AL, AP. | ||
| 338 | 'S' => ['pos', 'gender', 'number', 'case', 'definiteness', 'nametype'], | ||
| 339 | # AI ... indeclinable noun, degree is skipped, rest after declension too | ||
| 340 | 'A' => ['pos', 'degree', 'declension', 'gender', 'number', 'case'], | ||
| 341 | 'P' => ['pos', 'prontype', 'gender', 'number', 'case'], | ||
| 342 | 'N' => ['pos', 'numtype', 'gender', 'number', 'case'], | ||
| 343 | # Imperatives do not have tense so we must insert it. | ||
| 344 | 'V' => ['pos', 'verbform', 'tense', 'number', 'person'], | ||
| 345 | 'VA' => ['pos', 'verbform', 'gender', 'number', 'case'], | ||
| 346 | 'D' => ['pos', 'degree', 'case'], | ||
| 347 | 'C' => ['pos', 'conjtype'], | ||
| 348 | 'E' => ['pos', 'case'] | ||
| 349 | ); | ||
| 350 | return \%features; | ||
| 351 | } | ||
| 352 | |||
| 353 | |||
| 354 | |||
| 355 | #------------------------------------------------------------------------------ | ||
| 356 | # Decodes a physical tag (string) and returns the corresponding feature | ||
| 357 | # structure. | ||
| 358 | #------------------------------------------------------------------------------ | ||
| 359 | sub decode | ||
| 360 | { | ||
| 361 | my $self = shift; | ||
| 362 | my $tag = shift; | ||
| 363 | $tag = 'AXI' if($tag eq 'AI'); | ||
| 364 | $tag =~ s/^D([ADGN])$/DX$1/; | ||
| 365 | $tag =~ s/^P([12])/P${1}X/; | ||
| 366 | $tag =~ s/^P([MFN])/P3$1/; | ||
| 367 | $tag =~ s/^(S[MFN][SP][NGDA])([LP])$/${1}X${2}/; | ||
| 368 | $tag =~ s/^SX([LP])$/SXXXX$1/; | ||
| 369 | $tag =~ s/^VM/VMX/; | ||
| 370 | # VE is middle voice infinitive while VEAP3 is middle voice indicative | ||
| 371 | $tag =~ s/^VE$/Ve/; | ||
| 372 | my $fs = Lingua::Interset::FeatureStructure->new(); | ||
| 373 | $fs->set_tagset('fo::setur'); | ||
| 374 | my $atoms = $self->atoms(); | ||
| 375 | my $features = $self->feature_map(); | ||
| 376 | my @chars = split(//, $tag); | ||
| 377 | $atoms->{pos}->decode_and_merge_hard($chars[0], $fs); | ||
| 378 | my $fpos = $chars[0]; | ||
| 379 | $fpos = 'VA' if($chars[0] eq 'V' && $chars[1] eq 'A'); | ||
| 380 | my @features; | ||
| 381 | @features = @{$features->{$fpos}} if(defined($features->{$fpos})); | ||
| 382 | for(my $i = 1; $i<=$#features; $i++) | ||
| 383 | { | ||
| 384 | if(defined($features[$i]) && defined($chars[$i])) | ||
| 385 | { | ||
| 386 | # Tagset drivers normally do not throw exceptions because they should be able to digest any input. | ||
| 387 | # However, if we know we expect a feature and we have not defined an atom to handle that feature, | ||
| 388 | # then it is an error of our code, not of the input data. | ||
| 389 | if(!defined($atoms->{$features[$i]})) | ||
| 390 | { | ||
| 391 | confess("There is no atom to handle the feature '$features[$i]'"); | ||
| 392 | } | ||
| 393 | $atoms->{$features[$i]}->decode_and_merge_hard($chars[$i], $fs); | ||
| 394 | } | ||
| 395 | } | ||
| 396 | return $fs; | ||
| 397 | } | ||
| 398 | |||
| 399 | |||
| 400 | |||
| 401 | #------------------------------------------------------------------------------ | ||
| 402 | # Takes feature structure and returns the corresponding physical tag (string). | ||
| 403 | #------------------------------------------------------------------------------ | ||
| 404 | sub encode | ||
| 405 | { | ||
| 406 | my $self = shift; | ||
| 407 | my $fs = shift; # Lingua::Interset::FeatureStructure | ||
| 408 | my $atoms = $self->atoms(); | ||
| 409 | my $features = $self->feature_map(); | ||
| 410 | my $tag = $atoms->{pos}->encode($fs); | ||
| 411 | my $fpos = $tag; | ||
| 412 | $fpos = 'VA' if($fs->is_participle() && $fs->is_past()); | ||
| 413 | my @features; | ||
| 414 | @features = @{$features->{$fpos}} if(defined($features->{$fpos})); | ||
| 415 | for(my $i = 1; $i<=$#features; $i++) | ||
| 416 | { | ||
| 417 | if(defined($features[$i])) | ||
| 418 | { | ||
| 419 | # Tagset drivers normally do not throw exceptions because they should be able to digest any input. | ||
| 420 | # However, if we know we expect a feature and we have not defined an atom to handle that feature, | ||
| 421 | # then it is an error of our code, not of the input data. | ||
| 422 | if(!defined($atoms->{$features[$i]})) | ||
| 423 | { | ||
| 424 | confess("There is no atom to handle the feature '$features[$i]'"); | ||
| 425 | } | ||
| 426 | $tag .= $atoms->{$features[$i]}->encode($fs); | ||
| 427 | } | ||
| 428 | else | ||
| 429 | { | ||
| 430 | $tag .= 'X'; | ||
| 431 | } | ||
| 432 | } | ||
| 433 | $tag = 'AI' if($tag =~ m/^AX/); | ||
| 434 | $tag = 'C' if($tag eq 'CX'); | ||
| 435 | $tag =~ s/^DX([ADGN])$/D$1/; | ||
| 436 | $tag = 'NC' if($tag eq 'NCXXX'); ###!!! NC are numbers expressed by digits - should we reflect it somehow? | ||
| 437 | $tag =~ s/^P([12])X/P$1/; | ||
| 438 | $tag =~ s/^P3/P/; | ||
| 439 | $tag =~ s/^(S[MFN][SP][NGDA])X([LP])$/${1}${2}/; | ||
| 440 | $tag =~ s/^SX+([LP])$/SX$1/; | ||
| 441 | $tag =~ s/^VMX([SP])/VM$1/; | ||
| 442 | $tag =~ s/^VPP/VP/; | ||
| 443 | $tag =~ s/^SX+$/SX/ or $tag =~ s/^X+$/X/ or $tag =~ s/X+$//; | ||
| 444 | return $tag; | ||
| 445 | } | ||
| 446 | |||
| 447 | |||
| 448 | |||
| 449 | #------------------------------------------------------------------------------ | ||
| 450 | # Returns reference to list of known tags. | ||
| 451 | #------------------------------------------------------------------------------ | ||
| 452 | sub list | ||
| 453 | { | ||
| 454 | my $self = shift; | ||
| 455 | # There is no tag for punctuation; instead, the punctuation symbol is | ||
| 456 | # copied in the tag column. It thus does not make sense to include in the | ||
| 457 | # tagset the symbols we have observed, because other symbols may appear | ||
| 458 | # in new text. | ||
| 459 | # ! " % & ' ( ) , - . / : ; ? « ´ » ' " | ||
| 460 | my $list = <<end_of_list | ||
| 461 | ACSFPA | ||
| 462 | ACSFPD | ||
| 463 | ACSFPN | ||
| 464 | ACSFSA | ||
| 465 | ACSFSD | ||
| 466 | ACSFSN | ||
| 467 | ACSMPA | ||
| 468 | ACSMPD | ||
| 469 | ACSMPN | ||
| 470 | ACSMSA | ||
| 471 | ACSMSD | ||
| 472 | ACSMSN | ||
| 473 | ACSNPA | ||
| 474 | ACSNPD | ||
| 475 | ACSNPN | ||
| 476 | ACSNSA | ||
| 477 | ACSNSD | ||
| 478 | ACSNSN | ||
| 479 | ACWFPA | ||
| 480 | ACWFPD | ||
| 481 | ACWFPN | ||
| 482 | ACWFSA | ||
| 483 | ACWFSD | ||
| 484 | ACWFSN | ||
| 485 | ACWMPD | ||
| 486 | ACWMPN | ||
| 487 | ACWMSA | ||
| 488 | ACWMSN | ||
| 489 | ACWNPA | ||
| 490 | ACWNPD | ||
| 491 | ACWNPN | ||
| 492 | ACWNSA | ||
| 493 | ACWNSN | ||
| 494 | AI | ||
| 495 | APSFPA | ||
| 496 | APSFPD | ||
| 497 | APSFPG | ||
| 498 | APSFPN | ||
| 499 | APSFSA | ||
| 500 | APSFSD | ||
| 501 | APSFSG | ||
| 502 | APSFSN | ||
| 503 | APSMPA | ||
| 504 | APSMPD | ||
| 505 | APSMPG | ||
| 506 | APSMPN | ||
| 507 | APSMSA | ||
| 508 | APSMSD | ||
| 509 | APSMSG | ||
| 510 | APSMSN | ||
| 511 | APSNPA | ||
| 512 | APSNPD | ||
| 513 | APSNPG | ||
| 514 | APSNPN | ||
| 515 | APSNSA | ||
| 516 | APSNSD | ||
| 517 | APSNSG | ||
| 518 | APSNSN | ||
| 519 | APWFPA | ||
| 520 | APWFPD | ||
| 521 | APWFPG | ||
| 522 | APWFPN | ||
| 523 | APWFSA | ||
| 524 | APWFSD | ||
| 525 | APWFSG | ||
| 526 | APWFSN | ||
| 527 | APWMPA | ||
| 528 | APWMPD | ||
| 529 | APWMPG | ||
| 530 | APWMPN | ||
| 531 | APWMSA | ||
| 532 | APWMSD | ||
| 533 | APWMSG | ||
| 534 | APWMSN | ||
| 535 | APWNPA | ||
| 536 | APWNPD | ||
| 537 | APWNPG | ||
| 538 | APWNPN | ||
| 539 | APWNSA | ||
| 540 | APWNSD | ||
| 541 | APWNSG | ||
| 542 | APWNSN | ||
| 543 | ASSFPA | ||
| 544 | ASSFPD | ||
| 545 | ASSFPN | ||
| 546 | ASSFSA | ||
| 547 | ASSFSD | ||
| 548 | ASSFSN | ||
| 549 | ASSMPA | ||
| 550 | ASSMPN | ||
| 551 | ASSMSA | ||
| 552 | ASSMSD | ||
| 553 | ASSMSN | ||
| 554 | ASSNPA | ||
| 555 | ASSNPD | ||
| 556 | ASSNPN | ||
| 557 | ASSNSA | ||
| 558 | ASSNSD | ||
| 559 | ASSNSN | ||
| 560 | ASWFPA | ||
| 561 | ASWFPD | ||
| 562 | ASWFPN | ||
| 563 | ASWFSA | ||
| 564 | ASWFSD | ||
| 565 | ASWFSN | ||
| 566 | ASWMPA | ||
| 567 | ASWMPN | ||
| 568 | ASWMSA | ||
| 569 | ASWMSD | ||
| 570 | ASWMSN | ||
| 571 | ASWNPA | ||
| 572 | ASWNPD | ||
| 573 | ASWNPN | ||
| 574 | ASWNSA | ||
| 575 | ASWNSD | ||
| 576 | ASWNSN | ||
| 577 | C | ||
| 578 | CI | ||
| 579 | CR | ||
| 580 | DA | ||
| 581 | DCA | ||
| 582 | DCD | ||
| 583 | DCN | ||
| 584 | DD | ||
| 585 | DG | ||
| 586 | DN | ||
| 587 | DSA | ||
| 588 | DSN | ||
| 589 | EA | ||
| 590 | ED | ||
| 591 | EG | ||
| 592 | EN | ||
| 593 | F | ||
| 594 | I | ||
| 595 | NC | ||
| 596 | NCFPA | ||
| 597 | NCFPD | ||
| 598 | NCFPN | ||
| 599 | NCFSA | ||
| 600 | NCFSN | ||
| 601 | NCMPA | ||
| 602 | NCMPD | ||
| 603 | NCMPG | ||
| 604 | NCMPN | ||
| 605 | NCMSA | ||
| 606 | NCMSN | ||
| 607 | NCNPA | ||
| 608 | NCNPD | ||
| 609 | NCNPN | ||
| 610 | NCNSA | ||
| 611 | NCNSD | ||
| 612 | NCNSN | ||
| 613 | NOFSA | ||
| 614 | NOFSD | ||
| 615 | NOFSG | ||
| 616 | NOFSN | ||
| 617 | NOMPD | ||
| 618 | NOMSA | ||
| 619 | NOMSD | ||
| 620 | NOMSG | ||
| 621 | NOMSN | ||
| 622 | NONPA | ||
| 623 | NONPD | ||
| 624 | NONSA | ||
| 625 | NONSD | ||
| 626 | NONSN | ||
| 627 | P1PA | ||
| 628 | P1PD | ||
| 629 | P1PG | ||
| 630 | P1PN | ||
| 631 | P1SA | ||
| 632 | P1SD | ||
| 633 | P1SG | ||
| 634 | P1SN | ||
| 635 | P2PA | ||
| 636 | P2PD | ||
| 637 | P2PG | ||
| 638 | P2PN | ||
| 639 | P2SA | ||
| 640 | P2SD | ||
| 641 | P2SG | ||
| 642 | P2SN | ||
| 643 | PDFPA | ||
| 644 | PDFPD | ||
| 645 | PDFPN | ||
| 646 | PDFSA | ||
| 647 | PDFSD | ||
| 648 | PDFSN | ||
| 649 | PDMPA | ||
| 650 | PDMPD | ||
| 651 | PDMPN | ||
| 652 | PDMSA | ||
| 653 | PDMSD | ||
| 654 | PDMSN | ||
| 655 | PDNPA | ||
| 656 | PDNPD | ||
| 657 | PDNPN | ||
| 658 | PDNSA | ||
| 659 | PDNSD | ||
| 660 | PDNSN | ||
| 661 | PFPA | ||
| 662 | PFPD | ||
| 663 | PFPG | ||
| 664 | PFPN | ||
| 665 | PFSA | ||
| 666 | PFSD | ||
| 667 | PFSG | ||
| 668 | PFSN | ||
| 669 | PIFPA | ||
| 670 | PIFPD | ||
| 671 | PIFPN | ||
| 672 | PIFSA | ||
| 673 | PIFSD | ||
| 674 | PIFSN | ||
| 675 | PIMPA | ||
| 676 | PIMPD | ||
| 677 | PIMPN | ||
| 678 | PIMSA | ||
| 679 | PIMSD | ||
| 680 | PIMSN | ||
| 681 | PINPA | ||
| 682 | PINPD | ||
| 683 | PINPN | ||
| 684 | PINSA | ||
| 685 | PINSD | ||
| 686 | PINSN | ||
| 687 | PMPA | ||
| 688 | PMPD | ||
| 689 | PMPG | ||
| 690 | PMPN | ||
| 691 | PMSA | ||
| 692 | PMSD | ||
| 693 | PMSG | ||
| 694 | PMSN | ||
| 695 | PNPA | ||
| 696 | PNPD | ||
| 697 | PNPG | ||
| 698 | PNPN | ||
| 699 | PNSA | ||
| 700 | PNSD | ||
| 701 | PNSG | ||
| 702 | PNSN | ||
| 703 | SFPA | ||
| 704 | SFPAA | ||
| 705 | SFPAL | ||
| 706 | SFPD | ||
| 707 | SFPDA | ||
| 708 | SFPDAL | ||
| 709 | SFPDL | ||
| 710 | SFPG | ||
| 711 | SFPGL | ||
| 712 | SFPN | ||
| 713 | SFPNA | ||
| 714 | SFPNL | ||
| 715 | SFSA | ||
| 716 | SFSAA | ||
| 717 | SFSAAL | ||
| 718 | SFSAL | ||
| 719 | SFSAP | ||
| 720 | SFSD | ||
| 721 | SFSDA | ||
| 722 | SFSDAL | ||
| 723 | SFSDL | ||
| 724 | SFSDP | ||
| 725 | SFSG | ||
| 726 | SFSGA | ||
| 727 | SFSGL | ||
| 728 | SFSGP | ||
| 729 | SFSN | ||
| 730 | SFSNA | ||
| 731 | SFSNAL | ||
| 732 | SFSNL | ||
| 733 | SFSNP | ||
| 734 | SMPA | ||
| 735 | SMPAA | ||
| 736 | SMPD | ||
| 737 | SMPDA | ||
| 738 | SMPDL | ||
| 739 | SMPG | ||
| 740 | SMPGA | ||
| 741 | SMPN | ||
| 742 | SMPNA | ||
| 743 | SMSA | ||
| 744 | SMSAA | ||
| 745 | SMSAL | ||
| 746 | SMSAP | ||
| 747 | SMSD | ||
| 748 | SMSDA | ||
| 749 | SMSDAL | ||
| 750 | SMSDAP | ||
| 751 | SMSDL | ||
| 752 | SMSDP | ||
| 753 | SMSG | ||
| 754 | SMSGA | ||
| 755 | SMSGL | ||
| 756 | SMSGP | ||
| 757 | SMSN | ||
| 758 | SMSNA | ||
| 759 | SMSNAP | ||
| 760 | SMSNL | ||
| 761 | SMSNP | ||
| 762 | SNPA | ||
| 763 | SNPAA | ||
| 764 | SNPD | ||
| 765 | SNPDA | ||
| 766 | SNPDL | ||
| 767 | SNPG | ||
| 768 | SNPGA | ||
| 769 | SNPN | ||
| 770 | SNPNA | ||
| 771 | SNPNL | ||
| 772 | SNSA | ||
| 773 | SNSAA | ||
| 774 | SNSAAL | ||
| 775 | SNSAL | ||
| 776 | SNSD | ||
| 777 | SNSDA | ||
| 778 | SNSDAL | ||
| 779 | SNSDL | ||
| 780 | SNSDP | ||
| 781 | SNSG | ||
| 782 | SNSGA | ||
| 783 | SNSGL | ||
| 784 | SNSN | ||
| 785 | SNSNA | ||
| 786 | SNSNAL | ||
| 787 | SNSNAP | ||
| 788 | SNSNL | ||
| 789 | SNSNP | ||
| 790 | SX | ||
| 791 | SXL | ||
| 792 | SXP | ||
| 793 | T | ||
| 794 | VA | ||
| 795 | VAFPA | ||
| 796 | VAFPD | ||
| 797 | VAFPN | ||
| 798 | VAFSA | ||
| 799 | VAFSD | ||
| 800 | VAFSN | ||
| 801 | VAMPA | ||
| 802 | VAMPD | ||
| 803 | VAMPN | ||
| 804 | VAMSA | ||
| 805 | VAMSD | ||
| 806 | VAMSN | ||
| 807 | VANPA | ||
| 808 | VANPD | ||
| 809 | VANPN | ||
| 810 | VANSA | ||
| 811 | VANSD | ||
| 812 | VANSN | ||
| 813 | VE | ||
| 814 | VEAP1 | ||
| 815 | VEAP2 | ||
| 816 | VEAP3 | ||
| 817 | VEAS1 | ||
| 818 | VEAS2 | ||
| 819 | VEAS3 | ||
| 820 | VEPP1 | ||
| 821 | VEPP2 | ||
| 822 | VEPP3 | ||
| 823 | VEPS1 | ||
| 824 | VEPS2 | ||
| 825 | VEPS3 | ||
| 826 | VI | ||
| 827 | VMP | ||
| 828 | VMS | ||
| 829 | VNAP1 | ||
| 830 | VNAP2 | ||
| 831 | VNAP3 | ||
| 832 | VNAS1 | ||
| 833 | VNAS2 | ||
| 834 | VNAS3 | ||
| 835 | VNPP1 | ||
| 836 | VNPP2 | ||
| 837 | VNPP3 | ||
| 838 | VNPS1 | ||
| 839 | VNPS2 | ||
| 840 | VNPS3 | ||
| 841 | VP | ||
| 842 | X | ||
| 843 | end_of_list | ||
| 844 | ; | ||
| 845 | # Protect from editors that replace tabs by spaces. | ||
| 846 | $list =~ s/ \s+/\t/sg; | ||
| 847 | my @list = split(/\r?\n/, $list); | ||
| 848 | return \@list; | ||
| 849 | } | ||
| 850 | |||
| 851 | |||
| 852 | |||
| 853 | 1; | ||
| 854 | |||
| 855 | __END__ | ||
| 856 | |||
| 857 | =pod | ||
| 858 | |||
| 859 | =encoding UTF-8 | ||
| 860 | |||
| 861 | =head1 NAME | ||
| 862 | |||
| 863 | Lingua::Interset::Tagset::FO::Setur - Driver for the Faroese tagset provided by Bjartensen. | ||
| 864 | |||
| 865 | =head1 VERSION | ||
| 866 | |||
| 867 | version 3.015 | ||
| 868 | |||
| 869 | =head1 SYNOPSIS | ||
| 870 | |||
| 871 | use Lingua::Interset::Tagset::FO::Setur; | ||
| 872 | my $driver = Lingua::Interset::Tagset::FO::Setur->new(); | ||
| 873 | my $fs = $driver->decode('SMSN'); | ||
| 874 | |||
| 875 | or | ||
| 876 | |||
| 877 | use Lingua::Interset qw(decode); | ||
| 878 | my $fs = decode('fo::setur', 'SMSN'); | ||
| 879 | |||
| 880 | =head1 DESCRIPTION | ||
| 881 | |||
| 882 | Interset driver for the Faroese tagset briefly described by Bjartensen in | ||
| 883 | L<https://github.com/UniversalDependencies/docs/issues/336>. | ||
| 884 | The corpus where this tagset is used can be downloaded from L<http://stava.fo/> (“Markað tekstasavn”). | ||
| 885 | The corpus originates at Føroyamálsdeildin (Department of the Faroese Language and Literature), Fróðskaparsetur Føroya (University of Faroe Islands), | ||
| 886 | although I was not able to find it directly at their website (L<http://setur.fo/en/language-and-literature/department/>). | ||
| 887 | |||
| 888 | =head1 SEE ALSO | ||
| 889 | |||
| 890 | L<Lingua::Interset>, | ||
| 891 | L<Lingua::Interset::Tagset>, | ||
| 892 | L<Lingua::Interset::FeatureStructure> | ||
| 893 | |||
| 894 | =head1 AUTHOR | ||
| 895 | |||
| 896 | Dan Zeman <zeman@ufal.mff.cuni.cz> | ||
| 897 | |||
| 898 | =head1 COPYRIGHT AND LICENSE | ||
| 899 | |||
| 900 | This software is copyright (c) 2019 by Univerzita Karlova (Charles University). | ||
| 901 | |||
| 902 | This is free software; you can redistribute it and/or modify it under | ||
| 903 | the same terms as the Perl 5 programming language system itself. | ||
| 904 | |||
| 905 | =cut |