Interset/Tagset/ET/Puudepank.pm untested

filter: Statementstmt 0.0% 0 / 220 Branchbran 0.0% 0 / 20 Conditioncond 0.0% 0 / 30 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 286 CC 11 SCAR 39.9
CC
11
Cov
0%
encode
110.0
decode
6.0
get_tagset_id
2.0
CRAP 53.8
1 # ABSTRACT: Driver for the Estonian tagset from the Eesti keele puudepank (Estonian Language Treebank).
2 # Tag is the part of speech followed by a slash and the morphosyntactic features, separated by commas.
3 # Copyright © 2011, 2014, 2017 Dan Zeman <zeman@ufal.mff.cuni.cz>
4  
5 package Lingua::Interset::Tagset::ET::Puudepank;
6 use strict;
7 use warnings;
8 our $VERSION = '3.014';
9  
10 use utf8;
11 use open ':utf8';
12 use namespace::autoclean;
13 use Moose;
14 extends 'Lingua::Interset::Tagset';
15  
16  
17  
18 has 'atoms' => ( isa => 'HashRef', is => 'ro', builder => '_create_atoms', 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 # Specifically, it should be the ISO 639-2 language code, followed by '::' and
27 # a language-specific tagset id. Example: 'cs::multext'.
28 #------------------------------------------------------------------------------
29 sub get_tagset_id
30 {
31 return 'et::puudepank';
32 }
33  
34  
35  
36 #------------------------------------------------------------------------------
37 # Creates atomic drivers for surface features.
38 #------------------------------------------------------------------------------
39 sub _create_atoms
40 {
41 my $self = shift;
42 my %atoms;
43 # PART OF SPEECH ####################
44 $atoms{pos} = $self->create_atom
45 (
46 'tagset' => 'et::puudepank',
47 'surfeature' => 'pos',
48 'decode_map' =>
49 {
50 # n = noun (tuul, mees, kraan, riik, naine)
51 'n' => ['pos' => 'noun', 'nountype' => 'com'],
52 # prop = proper noun (Arnold, Lennart, Palts, Savisaar, Telia)
53 'prop' => ['pos' => 'noun', 'nountype' => 'prop'],
54 # art = article ###!!! DOES NOT OCCUR IN THE CORPUS
55 'art' => ['pos' => 'adj', 'prontype' => 'art'],
56 # v = verb (kutsutud, tahtnud, teadnud, tasunud, polnud)
57 'v' => ['pos' => 'verb'],
58 # v-fin = finite verb (roniti, valati, sõidutati, lahkunud, prantsatasimegi)
59 'v-fin' => ['pos' => 'verb', 'verbform' => 'fin'],
60 # v-inf = infinitive?/non-finite verb (lugeda, nuusutada, kiirustamata, laulmast, magama)
61 'v-inf' => ['pos' => 'verb', 'verbform' => 'inf'],
62 # v-pcp2 = verb participle? (sõidutatud, liigutatud, sisenenud, sõudnud, prantsatatud)
63 'v-pcp2' => ['pos' => 'verb', 'verbform' => 'part'],
64 # adj = adjective (suur, väike, noor, aastane, hall)
65 'adj' => ['pos' => 'adj'],
66 # adj-nat = nationality adjective (prantsuse, tšuktši)
67 'adj-nat' => ['pos' => 'adj', 'nountype' => 'prop', 'nametype' => 'nat'],
68 # adv = adverb (välja, edasi, ka, siis, maha)
69 'adv' => ['pos' => 'adv'],
70 # prp = preposition (juurde, taga, all, vastu, kohta)
71 'prp' => ['pos' => 'adp', 'adpostype' => 'prep'],
72 # pst = preposition/postposition (poole, järele, juurde, pealt, peale)
73 'pst' => ['pos' => 'adp', 'adpostype' => 'post'],
74 # conj-s = subordinating conjunction (et, kui, sest, nagu, kuigi)
75 'conj-s' => ['pos' => 'conj', 'conjtype' => 'sub'],
76 # conj-c = coordinating conjunction (ja, aga, või, vaid, a)
77 'conj-c' => ['pos' => 'conj', 'conjtype' => 'coor'],
78 # conj-p = prepositional conjunction ??? ###!!! DOES NOT OCCUR IN THE CORPUS
79 'conj-p' => ['pos' => 'conj', 'other' => {'subpos' => 'prep'}],
80 # pron = pronoun (to be specified) (pronoun type may be specified using features) (nood, sel, niisugusest, selle, sellesama)
81 'pron' => ['pos' => 'noun', 'prontype' => 'prn'],
82 # pron-pers = personal pronoun (ma, mina, sa, ta, tema, me, nad, nemad)
83 'pron-pers' => ['pos' => 'noun', 'prontype' => 'prs'],
84 # pron-rel = relative pronoun (mis, kes)
85 'pron-rel' => ['pos' => 'noun', 'prontype' => 'rel'],
86 # pron-int = interrogative pronoun ###!!! DOES NOT OCCUR IN THE CORPUS (is included under relative pronouns)
87 'pron-int' => ['pos' => 'noun', 'prontype' => 'int'],
88 # pron-dem = demonstrative pronoun (see, üks, siuke, selline, too)
89 'pron-dem' => ['pos' => 'noun', 'prontype' => 'dem'],
90 # pron-indef = indefinite pronoun (mõned)
91 'pron-indef' => ['pos' => 'noun', 'prontype' => 'ind'],
92 # pron-poss = possessive pronoun (ise)
93 'pron-poss' => ['pos' => 'noun', 'prontype' => 'prs', 'poss' => 'yes'],
94 # pron-def = possessive (?) pronoun (keegi, mingi)
95 'pron-def' => ['pos' => 'noun', 'prontype' => 'prs', 'poss' => 'yes'],
96 # pron-refl = reflexive pronoun (enda, endasse)
97 'pron-refl' => ['pos' => 'noun', 'prontype' => 'prs', 'reflex' => 'yes'],
98 # num = numeral (kaks, neli, viis, seitse, kümme)
99 'num' => ['pos' => 'num'],
100 # intj = interjection (no, kurat)
101 'intj' => ['pos' => 'int'],
102 # infm = infinitive marker ###!!! DOES NOT OCCUR IN THE CORPUS
103 'infm' => ['pos' => 'part', 'parttype' => 'inf'],
104 # punc = punctuation (., ,, ', -, :)
105 'punc' => ['pos' => 'punc'],
106 # sta = statement ??? ###!!! DOES NOT OCCUR IN THE CORPUS
107 # abbr = abbreviation (km/h, cm)
108 'abbr' => ['abbr' => 'yes'],
109 # x = undefined word class (--, pid, viis-, ta-)
110 'x' => [],
111 # b = discourse particle (only in sul.xml (spoken language)) (noh, nigu, vä, nagu, ei)
112 'b' => ['pos' => 'part']
113 },
114 'encode_map' =>
115  
116 { 'prontype' => { '' => { 'pos' => { 'noun' => { 'nountype' => { 'prop' => 'prop',
117 '@' => 'n' }},
118 'adj' => { 'nametype' => { 'nat' => 'adj-nat',
119 '@' => 'adj' }},
120 'num' => 'num',
121 # Encoding of verb forms is inconsistent in the corpus.
122 # The form is encoded in the features but sometimes it is also part of the part-of-speech tag.
123 # We can decode v-(fin|inf|pcp2) but we do not encode it.
124 # Our list of known tags only contains the simple "v" variant.
125 'verb' => 'v',
126 'adv' => 'adv',
127 'adp' => { 'adpostype' => { 'post' => 'pst',
128 '@' => 'prp' }},
129 'conj' => { 'conjtype' => { 'sub' => 'conj-s',
130 '@' => 'conj-c' }},
131 'part' => { 'parttype' => { 'inf' => 'infm',
132 '@' => 'b' }},
133 'int' => 'intj',
134 'punc' => 'punc',
135 '@' => { 'abbr' => { 'yes' => 'abbr',
136 '@' => 'x' }}}},
137 'art' => 'art',
138 # Encoding of pronoun types is inconsistent in the corpus.
139 # The type is always the first feature but sometimes it is also part of the part-of-speech tag (pron-dem/dem), next time it is not (pron/dem).
140 # We can decode pron-(dem|indef|int|rel) but we do not encode it. Our list of known tags only contains the pron/dem variant.
141 '@' => 'pron' }}
142 );
143 # NOUNTYPE ####################
144 $atoms{nountype} = $self->create_atom
145 (
146 'surfeature' => 'nountype',
147 'decode_map' =>
148 {
149 # com ... common noun (tuul, mees, kraan, riik, naine)
150 'com' => ['nountype' => 'com'],
151 # prop ... proper noun (Peeter, Jaan, Jüri, Mare, Erik)
152 'prop' => ['nountype' => 'prop'],
153 # nominal ... nominal abbreviation (Kaabel-TV, EE, kaabelTV) ... used rarely and inconsistently, should be ignored
154 'nominal' => []
155 },
156 'encode_map' =>
157 {
158 'nountype' => { 'prop' => 'prop',
159 '@' => 'com' }
160 }
161 );
162 # PRONTYPE ####################
163 $atoms{prontype} = $self->create_atom
164 (
165 'surfeature' => 'prontype',
166 'decode_map' =>
167 {
168 # demonstrative: sel (this), samal (the same), see (it, this), need (these), niisugune (such), too (that)
169 'dem' => ['prontype' => 'dem'],
170 # total: iga (each, every, any), kõik (everything, all), mõlemad (both)
171 'det' => ['prontype' => 'tot'],
172 # indefinite or negative: teised (other), midagi (nothing), üht (one), mõne (a few), keegi (one), mingi (some), mitu (several)
173 'indef' => ['prontype' => 'ind|neg'],
174 # interrogative: milline (what), mis (which), kes (who)
175 'inter' => ['prontype' => 'int'],
176 # personal: mina, ma (I), sina, sa (you.sing), ta, tema (he/she/it), meie, me (we), teie, te (you.plur), nemad, nad (they)
177 'pers' => ['prontype' => 'prs'],
178 # possessive: oma (own, their, your, its, his, our, my)
179 # Note: The real tag is 'pos' but we change it to 'poss' during preprocessing to make it distinct from the tag for the positive degree of adjectives.
180 'poss' => ['prontype' => 'prs', 'poss' => 'yes'],
181 # reciprocal: üksteisele (each other)
182 'rec' => ['prontype' => 'rcp'],
183 # reflexive: ise, enese, end (oneself, self)
184 'refl' => ['prontype' => 'prs', 'reflex' => 'yes'],
185 # relative: kes (who), mis (what), milline (which)
186 'rel' => ['prontype' => 'rel']
187 },
188 'encode_map' =>
189 {
190 'prontype' => { 'dem' => 'dem',
191 'tot' => 'det',
192 'ind' => 'indef',
193 'neg' => 'indef',
194 'int' => 'inter',
195 'prs' => { 'poss' => { 'yes' => 'pos',
196 '@' => { 'reflex' => { 'yes' => 'refl',
197 '@' => 'pers' }}}},
198 'rcp' => 'rec',
199 'rel' => 'rel' }
200 }
201 );
202 # NUMTYPE ####################
203 $atoms{numtype} = $self->create_simple_atom
204 (
205 'intfeature' => 'numtype',
206 'simple_decode_map' =>
207 {
208 # card ... cardinal numerals (kaks = two, neli = four, viis = five, seitse = seven, kümme = ten)
209 # ord ... adj/ord || num/ord (esimene = first, teine = second, kolmas = third)
210 'card' => 'card',
211 'ord' => 'ord'
212 }
213 );
214 # NUMFORM ####################
215 $atoms{numform} = $self->create_simple_atom
216 (
217 'intfeature' => 'numform',
218 'simple_decode_map' =>
219 {
220 # l ... numeral (or ordinal adjective) written in letters (üks, kaks, kolm, neli, viis)
221 # digit ... numeral written in digits (21, 120, 20_000, 15.40, 1875)
222 'l' => 'word',
223 'digit' => 'digit'
224 }
225 );
226 # VERBTYPE ####################
227 $atoms{verbtype} = $self->create_simple_atom
228 (
229 'intfeature' => 'verbtype',
230 'simple_decode_map' =>
231 {
232 # aux ... v/aux || v-fin/aux: auxiliary verb (ole = to be, ei = not, saaks = to)
233 # mod ... v/mod || v-fin/mod: modal verb (saa = can, pean = have/need?, võib = can)
234 # main ... main verb:
235 # main ... v/main (teha = do, saada = get, hakata = start, pakkuda = offer, müüa = sell)
236 # main ... v-fin/main (olen = I am, tatsan, sõidan = I drive, ütlen = I say, ujun = I swim)
237 # main ... v-inf/main (magama = sleep, hingama = breathe, uudistama = gaze, külastama = visit, korjama = pick)
238 # main ... v-pcp2/main (liikunud = moved, roninud = climbed, tilkunud = dripped, tõusnud = increased, prantsatanud = crashed)
239 'aux' => 'aux',
240 'mod' => 'mod'
241 },
242 'encode_default' => 'main'
243 );
244 # ADPOSTYPE ####################
245 $atoms{adpostype} = $self->create_simple_atom
246 (
247 'intfeature' => 'adpostype',
248 'simple_decode_map' =>
249 {
250 # pre ... prp/pre: preposition (vastu = against, enne = before, pärast = after, hoolimata = in spite of, üle = over)
251 # post ... prp/post: postposition (mööda = along, juurde = to/by/near, taga = behind, all = under, vastu = against)
252 # post ... pst/post: postposition (vahet = between, poole = to, järele = for, pealt = from, peale = after)
253 'pre' => 'prep',
254 'post' => 'post'
255 }
256 );
257 # CONJTYPE ####################
258 $atoms{conjtype} = $self->create_simple_atom
259 (
260 'intfeature' => 'conjtype',
261 'simple_decode_map' =>
262 {
263 # crd ... conj-c/crd || conj-s/crd: coordination (ja = and, aga = but, või = or, vaid = but, ent = however)
264 # conj-c/crd,sub (kui = if/as/when/that)
265 # sub ... conj-s/sub || conj-c/sub: subordination (et = that, kui = if/as/when/that, sest = because, nagu = as/like, kuigi = although)
266 'crd' => 'coor',
267 'sub' => 'sub'
268 }
269 );
270 # PUNCTYPE ####################
271 $atoms{punctype} = $self->create_simple_atom
272 (
273 'intfeature' => 'punctype',
274 'simple_decode_map' =>
275 {
276 # Com ... comma (,)
277 # Exc ... exclamation mark (!)
278 # Fst ... full stop (., ...)
279 # Int ... question mark (?)
280 'Com' => 'comm',
281 'Exc' => 'excl',
282 'Fst' => 'peri',
283 'Int' => 'qest'
284 }
285 );
286 # PERSON ####################
287 $atoms{person} = $self->create_simple_atom
288 (
289 'intfeature' => 'person',
290 'simple_decode_map' =>
291 {
292 # ps1 ... first person (ma, mind)
293 # ps2 ... second person (sind)
294 # ps3 ... third person (neil, neile, nende, nad, neid, tal, talle, tema, ta)
295 'ps1' => '1',
296 'ps2' => '2',
297 'ps3' => '3'
298 }
299 );
300 # PERSONAL VS. IMPERSONAL VERB ####################
301 # Personativity of verbs: is the person of the verb known? (###!!! DZ: tagset documentation missing, misinterpretation possible!)
302 $atoms{personal} = $self->create_atom
303 (
304 'tagset' => 'et::puudepank',
305 'surfeature' => 'personal',
306 'decode_map' =>
307 {
308 # ps ... (olen = I am, sõidan = I drive, ütlen = I say, ujun = I swim, liigutan = I move)
309 # imps ... (räägitakse = it's said, kaalutakse = it's considered; mängiti = played, visati = thrown, eelistati = preferred, hakati = began)
310 'ps' => [], # default
311 'imps' => ['other' => {'personal' => 'no'}]
312 },
313 'encode_map' =>
314 {
315 'other/personal' => { 'no' => 'imps',
316 '@' => { 'verbtype' => { 'aux' => 'ps',
317 '@' => { 'mood' => { 'ind' => { 'person' => { '' => { 'polarity' => { 'pos' => 'imps',
318 '@' => 'ps' }},
319 '@' => 'ps' }},
320 'cnd' => { 'tense' => { 'past' => 'ps',
321 '@' => { 'person' => { '' => { 'polarity' => { 'pos' => 'imps',
322 '@' => 'ps' }},
323 '@' => 'ps' }}}},
324 '@' => 'ps' }}}}}
325 }
326 );
327 # NUMBER ####################
328 $atoms{number} = $self->create_simple_atom
329 (
330 'intfeature' => 'number',
331 'simple_decode_map' =>
332 {
333 # sg ... singular (abbreviations, adjectives, nouns, numerals, pronouns, proper nouns, verbs)
334 # pl ... plural (ditto)
335 'sg' => 'sing',
336 'pl' => 'plur'
337 }
338 );
339 # CASE ####################
340 $atoms{case} = $self->create_simple_atom
341 (
342 'intfeature' => 'case',
343 'simple_decode_map' =>
344 {
345 # nom ... nominative (tuul, mees, kraan, riik, naine)
346 # gen ... genitive (laua, mehe, ukse, metsa, tee)
347 # abes ... abessive? (aietuseta)
348 # abl ... ablative (maalt, laevalt, põrandalt, teelt, näolt)
349 # ad ... adessive (aastal, tänaval, hommikul, õhtul, sammul)
350 # adit ... additive (koju, tuppa, linna, kööki, aeda) ... tenhle pád česká, anglická ani estonská Wikipedie estonštině nepřipisuje, ale značky Multext ho obsahují
351 # additive has the same meaning as illative, exists only for some words and only in singular
352 # all ... allative (põrandala, kaldale, rinnale, koerale, külalisele)
353 # el ... elative (hommikust, trepist, linnast, toast, voodist)
354 # es ... essive (naisena, paratamatusena, tulemusena, montöörina, tegurina)
355 # ill ... illative (voodisse, ämbrisse, sahtlisse, esikusse, autosse)
356 # in ... inessive (toas, elus, unes, sadulas, lumes)
357 # kom ... comitative (kiviga, jalaga, rattaga, liigutusega, petrooliga)
358 # part ... partitive (vett, tundi, ust, verd, rada)
359 # term ... terminative (õhtuni, mereni, ääreni, kaldani, kroonini)
360 # tr ... translative (presidendiks, ajaks, kasuks, müüjaks, karjapoisiks)
361 'nom' => 'nom',
362 'gen' => 'gen',
363 'abes' => 'abe',
364 'abl' => 'abl',
365 'ad' => 'ade',
366 'adit' => 'add',
367 'all' => 'all',
368 'el' => 'ela',
369 'es' => 'ess',
370 'ill' => 'ill',
371 'in' => 'ine',
372 'kom' => 'com',
373 'part' => 'par',
374 'term' => 'ter',
375 'tr' => 'tra'
376 }
377 );
378 # VALENCY CASE OF ADPOSITIONS ####################
379 $atoms{valcase} = $self->create_simple_atom
380 (
381 'intfeature' => 'case',
382 'simple_decode_map' =>
383 {
384 # .el, %el ... preposition requires ellative (hoolimata = in spite of)
385 # .gen, %gen ... preposition requires genitive (juurde = to, taga = behind, all = under, vastu = against, kohta = for)
386 # .nom, %nom ... preposition requires nominative (tagasi = back)
387 # .kom, %kom ... preposition requires comitative (koos = with)
388 # .part, %part ... preposition requires partitive (mööda = along, vastu = against, keset = in the middle of, piki = along, enne = before)
389 '.nom' => 'nom',
390 '.gen' => 'gen',
391 '.abes' => 'abe',
392 '.abl' => 'abl',
393 '.ad' => 'ade',
394 '.adit' => 'add',
395 '.all' => 'all',
396 '.el' => 'ela',
397 '.es' => 'ess',
398 '.ill' => 'ill',
399 '.in' => 'ine',
400 '.kom' => 'com',
401 '.part' => 'par',
402 '.term' => 'ter',
403 '.tr' => 'tra'
404 }
405 );
406 # DEGREE OF COMPARISON ####################
407 $atoms{degree} = $self->create_simple_atom
408 (
409 'intfeature' => 'degree',
410 'simple_decode_map' =>
411 {
412 # The feature 'pos' seems to be the only feature with multiple meanings depending on the part of speech.
413 # With adjectives, it means probably 'positive degree'. With pronouns, it is probably 'possessive'.
414 # pos ... adj/pos (suur = big, väike = small, noor = young, aastane = annual, hall = gray)
415 # pos ... adj/pos,partic (unistav = dreamy, rahulolev = contented, kägardunud = pushed, hautatud = stew, solvatud = hurt)
416 # pos ... pron/pos (oma = my/your/his/her/its/our/their)
417 # pos ... pron-poss/pos (oma)
418 # pos ... pron-poss/pos,det,refl (ise, enda, oma)
419 # comp ... comparative (tugevam = stronger, parem = better, tõenäolisem = more likely, enam = more, suurem = greater)
420 'pos' => 'pos',
421 'comp' => 'cmp'
422 }
423 );
424 # VERBFORM AND MOOD ####################
425 $atoms{mood} = $self->create_atom
426 (
427 'surfeature' => 'mood',
428 'decode_map' =>
429 {
430 # inf ... infinitive (teha, saada, hakata, pakkuda, müüa)
431 # sup ... supine (informeerimata, tulemast, avaldamast, otsima, tegema)
432 # partic ... adjectives and verbs ... participles (keedetud, tuntud, tunnustatud)
433 # ger ... gerund (arvates, naeratades, vaadates, näidates, saabudes)
434 # indic ... indicative (oli, pole, ole, on, ongi)
435 # imper ... imperative (vala, sõiduta)
436 # cond ... conditional (saaks, moodustaksid)
437 # quot ... quotative mood (olevat, tilkuvat)
438 'inf' => ['verbform' => 'inf'],
439 'sup' => ['verbform' => 'sup'],
440 'partic'=> ['verbform' => 'part'],
441 'ger' => ['verbform' => 'ger'],
442 'indic' => ['verbform' => 'fin', 'mood' => 'ind'],
443 'imper' => ['verbform' => 'fin', 'mood' => 'imp'],
444 'cond' => ['verbform' => 'fin', 'mood' => 'cnd'],
445 'quot' => ['verbform' => 'fin', 'mood' => 'qot']
446 },
447 'encode_map' =>
448 {
449 'verbform' => { 'inf' => 'inf',
450 'sup' => 'sup',
451 'part' => 'partic',
452 'trans' => 'partic',
453 'ger' => 'ger',
454 '@' => { 'mood' => { 'imp' => 'imper',
455 'cnd' => 'cond',
456 'qot' => 'quot',
457 '@' => 'indic' }}}
458 }
459 );
460 # TENSE ####################
461 $atoms{tense} = $self->create_simple_atom
462 (
463 'intfeature' => 'tense',
464 'simple_decode_map' =>
465 {
466 # pres ... present (saaks, moodustaksid, oleks, asetuks, kaalutakse)
467 # past ... past (tehtud, antud, surutud, kirjutatud, arvatud)
468 # impf ... imperfect (oli, käskisin, helistasin, olid, algasid)
469 'pres' => 'pres',
470 'past' => 'past',
471 'impf' => 'imp'
472 }
473 );
474 # POLARITY ####################
475 $atoms{polarity} = $self->create_simple_atom
476 (
477 'intfeature' => 'polarity',
478 'simple_decode_map' =>
479 {
480 # af ... affirmative verb (oli, saime, andsin, sain, ütlesin)
481 # neg ... negative verb (ei, kutsutud, tahtnud, teadnud, polnud)
482 'af' => 'pos',
483 'neg' => 'neg'
484 }
485 );
486 # MERGED ATOM TO DECODE ANY FEATURE VALUE ####################
487 # Note that some features of the tagset are ignored:
488 # Subcategorization of verbs:
489 # .Intr, %Intr ... intransitive verb
490 # .Int, %Int ... verb subcategorization? another code for intransitive?
491 # .InfP, %InfP ... infinitive phrase
492 # .FinV, %FinV ... finite verb
493 # .NGP-P, %NGP-P ... verb subcategorization? for what?
494 # .Abl, %Abl ... noun phrase in ablative
495 # .All, %All ... noun phrase in allative
496 # .El, %El ... noun phrase in elative
497 # .Part, %Part ... noun phrase in partitive
498 # y ... noun abbreviations? (USA, AS, EBRD, CIA, ETV)
499 # ? ... abbreviations, numerals; unknown meaning
500 # .? ... abbreviations, adjectives, adverbs, nouns, proper nouns; unknown meaning
501 # x? ... numerals; unknown meaning
502 # .cap, %cap ... capitalized word (abbreviations: KGB; adjectives: Inglise; adverbs: Siis; conj-c: Ja; nouns: Poistelt; pronouns: Meile; prop: Jane...)
503 # .gi ... adjectives and nouns with the suffix '-gi' (rare feature)
504 # .ja, %ja ... words with suffix '-ja' (pakkujad, vabastaja)
505 # .janna ... words with suffix '-janna' (pekimägi-käskijanna)
506 # .ke ... words with suffix '-ke' (aiamajakese, sammukese, klaasikese)
507 # .lik ... words with suffix '-lik' (pidulikku)
508 # .line ... adjectives or nouns with suffix '-line', '-lis-' (mustavereline)
509 # .m ... adjectives; unknown meaning (rare feature; just one occurrence: väiksemagi)
510 # .mine, %mine ... nouns with suffix '-mis-' (rare feature; nõudmised, kurtmised)
511 # .nud, %nud ... words with suffix '-nud'
512 # .tav, %tav ... words with suffix '-tav' (laetav, väidetavasti)
513 # .tud, %tud ... words with suffix '-tud'
514 # .v, %v ... participial adjectives with suffix '-v', '-va-'
515 # -- ... meaning no features
516 my @fatoms = map {$atoms{$_}} (qw(nountype prontype numtype numform verbtype adpostype conjtype punctype number case valcase degree person personal mood tense polarity));
517 $atoms{feature} = $self->create_merged_atom
518 (
519 'surfeature' => 'feature',
520 'tagset' => 'et::puudepank',
521 'atoms' => \@fatoms
522 );
523 return \%atoms;
524 }
525  
526  
527  
528 #------------------------------------------------------------------------------
529 # Decodes a physical tag (string) and returns the corresponding feature
530 # structure.
531 #------------------------------------------------------------------------------
532 sub decode
533 {
534 my $self = shift;
535 my $tag = shift;
536 my $fs = Lingua::Interset::FeatureStructure->new();
537 $fs->set_tagset('et::puudepank');
538 my $atoms = $self->atoms();
539 # Tag is the part of speech followed by a slash and the morphosyntactic features, separated by commas.
540 # example: n/com,sg,nom
541 # The 'pos' feature is ambiguous. For adjectives it is the positive degree.
542 # For pronouns it is the possessive type.
543 # We must disambiguate it before we decode each feature separately.
544 $tag =~ s:^pron(-poss)?/pos:pron/poss:;
545 my ($pos, $features) = split(/\//, $tag);
546 # Two dashes are used if there are no features.
547 $features = '' if($features eq '--');
548 my @features = split(/,/, $features);
549 $atoms->{pos}->decode_and_merge_hard($pos, $fs);
550 foreach my $feature (@features)
551 {
552 $atoms->{feature}->decode_and_merge_hard($feature, $fs);
553 }
554 return $fs;
555 }
556  
557  
558  
559 #------------------------------------------------------------------------------
560 # Takes feature structure and returns the corresponding physical tag (string).
561 #------------------------------------------------------------------------------
562 sub encode
563 {
564 my $self = shift;
565 my $fs = shift; # Lingua::Interset::FeatureStructure
566 my $atoms = $self->atoms();
567 my $pos = $atoms->{pos}->encode($fs);
568 my $features = '--';
569 my %feature_names =
570 (
571 'n' => ['nountype', 'number', 'case'],
572 'prop' => ['nountype', 'number', 'case'],
573 'aord' => ['numtype', 'number', 'case', 'numform'],
574 'apart' => ['degree', 'number', 'case', 'mood'],
575 'adj' => ['degree', 'number', 'case'],
576 'prs' => ['prontype', 'person', 'number', 'case'],
577 'pron' => ['prontype', 'number', 'case'],
578 'num' => ['numtype', 'number', 'case', 'numform'],
579 'vinf' => ['verbtype', 'mood'],
580 'vpart' => ['verbtype', 'mood', 'tense', 'person', 'number', 'personal'],
581 'vsup' => ['verbtype', 'mood', 'person', 'number', 'personal', 'case'],
582 'v' => ['verbtype', 'mood', 'tense', 'person', 'number', 'personal', 'polarity'],
583 'prp' => ['adpostype', 'valcase'],
584 'pst' => ['adpostype', 'valcase'],
585 'conj-c'=> ['conjtype'],
586 'conj-s'=> ['conjtype'],
587 'punc' => ['punctype']
588 );
589 my $fpos = $pos;
590 $fpos = 'aord' if($fpos eq 'adj' && $fs->is_ordinal());
591 $fpos = 'apart' if($fpos eq 'adj' && $fs->is_participle());
592 $fpos = 'prs' if($fpos eq 'pron' && $fs->is_personal_pronoun() && !$fs->is_possessive() && !$fs->is_reflexive());
593 $fpos = 'vinf' if($fpos eq 'v' && ($fs->is_infinitive() || $fs->is_gerund()));
594 $fpos = 'vpart' if($fpos eq 'v' && ($fs->is_participle() || $fs->is_transgressive()));
595 $fpos = 'vsup' if($fpos eq 'v' && $fs->is_supine());
596 my $feature_names = $feature_names{$fpos};
597 $feature_names = [] unless(defined($feature_names));
598 my @features = ();
599 foreach my $feature (@{$feature_names})
600 {
601 my $value = $atoms->{$feature}->encode($fs);
602 push(@features, $value) unless($value eq '');
603 }
604 if(@features)
605 {
606 $features = join(',', @features);
607 }
608 my $tag = "$pos/$features";
609 return $tag;
610 }
611  
612  
613  
614 #------------------------------------------------------------------------------
615 # Returns reference to list of known tags.
616 # Tags were collected from the corpus.
617 # 598 tags have been observed in the corpus.
618 # We removed some tags due to inconsistency between pos and features (e.g.
619 # conj-c/sub).
620 # Removed features:
621 # .cap, %cap ... the word starts with an uppercase letter
622 # .gi ... adjectives and nouns with the suffix '-gi' (rare feature)
623 # .ja, %ja ... words with suffix '-ja' (pakkujad, vabastaja)
624 # .janna ... words with suffix '-janna' (pekimägi-käskijanna)
625 # .ke ... words with suffix '-ke' (aiamajakese, sammukese, klaasikese)
626 # .lik ... words with suffix '-lik' (pidulikku)
627 # .line ... adjectives or nouns with suffix '-line', '-lis-' (mustavereline)
628 # .m ... adjectives; unknown meaning (rare feature; just one occurrence: väiksemagi)
629 # .mine, %mine ... nouns with suffix '-mis-' (rare feature; nõudmised, kurtmised)
630 # .nud, %nud ... words with suffix '-nud'
631 # .tav, %tav ... words with suffix '-tav' (laetav, väidetavasti)
632 # .tud, %tud ... words with suffix '-tud'
633 # .v, %v ... participial adjectives with suffix '-v', '-va-'
634 # .? ... undocumented feature with unknown meaning
635 # x? ... undocumented feature with unknown meaning (occurs with num/card,digit)
636 # ? ... undocumented feature with unknown meaning
637 # Subcategorization of verbs:
638 # .Intr, %Intr ... intransitive verb
639 # .Int, %Int ... verb subcategorization? another code for intransitive?
640 # .InfP, %InfP ... infinitive phrase
641 # .FinV, %FinV ... finite verb
642 # .NGP-P, %NGP-P ... verb subcategorization? for what?
643 # .Abl, %Abl ... noun phrase in ablative
644 # .All, %All ... noun phrase in allative
645 # .El, %El ... noun phrase in elative
646 # .Part, %Part ... noun phrase in partitive
647 # 252 tags survived.
648 # Then we added missing combinations of number+case (except for the additive
649 # case, whose usage is limited) for nominals and person+number for verbs.
650 # 614 total tags after the extension.
651 #------------------------------------------------------------------------------
652 sub list
653 {
654 my $self = shift;
655 my $list = <<end_of_list
656 abbr/--
657 adj-nat/--
658 adj/comp,pl,abes
659 adj/comp,pl,abl
660 adj/comp,pl,ad
661 adj/comp,pl,all
662 adj/comp,pl,el
663 adj/comp,pl,es
664 adj/comp,pl,gen
665 adj/comp,pl,ill
666 adj/comp,pl,in
667 adj/comp,pl,kom
668 adj/comp,pl,nom
669 adj/comp,pl,part
670 adj/comp,pl,term
671 adj/comp,pl,tr
672 adj/comp,sg,abes
673 adj/comp,sg,abl
674 adj/comp,sg,ad
675 adj/comp,sg,all
676 adj/comp,sg,el
677 adj/comp,sg,es
678 adj/comp,sg,gen
679 adj/comp,sg,ill
680 adj/comp,sg,in
681 adj/comp,sg,kom
682 adj/comp,sg,nom
683 adj/comp,sg,part
684 adj/comp,sg,term
685 adj/comp,sg,tr
686 adj/ord,pl,abes,l
687 adj/ord,pl,abl,l
688 adj/ord,pl,ad,l
689 adj/ord,pl,all,l
690 adj/ord,pl,el,l
691 adj/ord,pl,es,l
692 adj/ord,pl,gen,l
693 adj/ord,pl,ill,l
694 adj/ord,pl,in,l
695 adj/ord,pl,kom,l
696 adj/ord,pl,nom,l
697 adj/ord,pl,part,l
698 adj/ord,pl,term,l
699 adj/ord,pl,tr,l
700 adj/ord,sg,abes,l
701 adj/ord,sg,abl,l
702 adj/ord,sg,ad,l
703 adj/ord,sg,all,l
704 adj/ord,sg,el,l
705 adj/ord,sg,es,l
706 adj/ord,sg,gen,l
707 adj/ord,sg,ill,l
708 adj/ord,sg,in,l
709 adj/ord,sg,kom,l
710 adj/ord,sg,nom,l
711 adj/ord,sg,part,l
712 adj/ord,sg,term,l
713 adj/ord,sg,tr,l
714 adj/pos,pl,abes
715 adj/pos,pl,abes,partic
716 adj/pos,pl,abl
717 adj/pos,pl,abl,partic
718 adj/pos,pl,ad
719 adj/pos,pl,ad,partic
720 adj/pos,pl,all
721 adj/pos,pl,all,partic
722 adj/pos,pl,el
723 adj/pos,pl,el,partic
724 adj/pos,pl,es
725 adj/pos,pl,es,partic
726 adj/pos,pl,gen
727 adj/pos,pl,gen,partic
728 adj/pos,pl,ill
729 adj/pos,pl,ill,partic
730 adj/pos,pl,in
731 adj/pos,pl,in,partic
732 adj/pos,pl,kom
733 adj/pos,pl,kom,partic
734 adj/pos,pl,nom
735 adj/pos,pl,nom,partic
736 adj/pos,pl,part
737 adj/pos,pl,part,partic
738 adj/pos,pl,term
739 adj/pos,pl,term,partic
740 adj/pos,pl,tr
741 adj/pos,pl,tr,partic
742 adj/pos,sg,abes
743 adj/pos,sg,abes,partic
744 adj/pos,sg,abl
745 adj/pos,sg,abl,partic
746 adj/pos,sg,ad
747 adj/pos,sg,ad,partic
748 adj/pos,sg,adit
749 adj/pos,sg,all
750 adj/pos,sg,all,partic
751 adj/pos,sg,el
752 adj/pos,sg,el,partic
753 adj/pos,sg,es
754 adj/pos,sg,es,partic
755 adj/pos,sg,gen
756 adj/pos,sg,gen,partic
757 adj/pos,sg,ill
758 adj/pos,sg,ill,partic
759 adj/pos,sg,in
760 adj/pos,sg,in,partic
761 adj/pos,sg,kom
762 adj/pos,sg,kom,partic
763 adj/pos,sg,nom
764 adj/pos,sg,nom,partic
765 adj/pos,sg,part
766 adj/pos,sg,part,partic
767 adj/pos,sg,term
768 adj/pos,sg,term,partic
769 adj/pos,sg,tr
770 adj/pos,sg,tr,partic
771 adv/--
772 b/--
773 conj-c/crd
774 conj-s/sub
775 intj/--
776 n/com,pl,abes
777 n/com,pl,abl
778 n/com,pl,ad
779 n/com,pl,all
780 n/com,pl,el
781 n/com,pl,es
782 n/com,pl,gen
783 n/com,pl,ill
784 n/com,pl,in
785 n/com,pl,kom
786 n/com,pl,nom
787 n/com,pl,part
788 n/com,pl,term
789 n/com,pl,tr
790 n/com,sg,abes
791 n/com,sg,abl
792 n/com,sg,ad
793 n/com,sg,adit
794 n/com,sg,all
795 n/com,sg,el
796 n/com,sg,es
797 n/com,sg,gen
798 n/com,sg,ill
799 n/com,sg,in
800 n/com,sg,kom
801 n/com,sg,nom
802 n/com,sg,part
803 n/com,sg,term
804 n/com,sg,tr
805 num/card,digit
806 num/card,pl,abes,l
807 num/card,pl,abl,l
808 num/card,pl,ad,l
809 num/card,pl,all,l
810 num/card,pl,el,l
811 num/card,pl,es,l
812 num/card,pl,gen,l
813 num/card,pl,ill,l
814 num/card,pl,in,l
815 num/card,pl,kom,l
816 num/card,pl,nom,l
817 num/card,pl,part,l
818 num/card,pl,term,l
819 num/card,pl,tr,l
820 num/card,sg,abes,l
821 num/card,sg,abl,l
822 num/card,sg,ad,l
823 num/card,sg,adit,l
824 num/card,sg,all,l
825 num/card,sg,el,l
826 num/card,sg,es,l
827 num/card,sg,gen,l
828 num/card,sg,ill,l
829 num/card,sg,in,l
830 num/card,sg,kom,l
831 num/card,sg,nom,l
832 num/card,sg,part,l
833 num/card,sg,term,l
834 num/card,sg,tr,l
835 num/ord,digit
836 num/ord,pl,abes,l
837 num/ord,pl,abl,l
838 num/ord,pl,ad,l
839 num/ord,pl,all,l
840 num/ord,pl,el,l
841 num/ord,pl,es,l
842 num/ord,pl,gen,l
843 num/ord,pl,ill,l
844 num/ord,pl,in,l
845 num/ord,pl,kom,l
846 num/ord,pl,nom,l
847 num/ord,pl,part,l
848 num/ord,pl,term,l
849 num/ord,pl,tr,l
850 num/ord,sg,abes,l
851 num/ord,sg,abl,l
852 num/ord,sg,ad,l
853 num/ord,sg,adit,l
854 num/ord,sg,all,l
855 num/ord,sg,el,l
856 num/ord,sg,es,l
857 num/ord,sg,gen,l
858 num/ord,sg,ill,l
859 num/ord,sg,in,l
860 num/ord,sg,kom,l
861 num/ord,sg,nom,l
862 num/ord,sg,part,l
863 num/ord,sg,term,l
864 num/ord,sg,tr,l
865 pron/dem,pl,abes
866 pron/dem,pl,abl
867 pron/dem,pl,ad
868 pron/dem,pl,all
869 pron/dem,pl,el
870 pron/dem,pl,es
871 pron/dem,pl,gen
872 pron/dem,pl,ill
873 pron/dem,pl,in
874 pron/dem,pl,kom
875 pron/dem,pl,nom
876 pron/dem,pl,part
877 pron/dem,pl,term
878 pron/dem,pl,tr
879 pron/dem,sg,abes
880 pron/dem,sg,abl
881 pron/dem,sg,ad
882 pron/dem,sg,all
883 pron/dem,sg,el
884 pron/dem,sg,es
885 pron/dem,sg,gen
886 pron/dem,sg,ill
887 pron/dem,sg,in
888 pron/dem,sg,kom
889 pron/dem,sg,nom
890 pron/dem,sg,part
891 pron/dem,sg,term
892 pron/dem,sg,tr
893 pron/det,pl,abes
894 pron/det,pl,abl
895 pron/det,pl,ad
896 pron/det,pl,all
897 pron/det,pl,el
898 pron/det,pl,es
899 pron/det,pl,gen
900 pron/det,pl,ill
901 pron/det,pl,in
902 pron/det,pl,kom
903 pron/det,pl,nom
904 pron/det,pl,part
905 pron/det,pl,term
906 pron/det,pl,tr
907 pron/det,sg,abes
908 pron/det,sg,abl
909 pron/det,sg,ad
910 pron/det,sg,all
911 pron/det,sg,el
912 pron/det,sg,es
913 pron/det,sg,gen
914 pron/det,sg,ill
915 pron/det,sg,in
916 pron/det,sg,kom
917 pron/det,sg,nom
918 pron/det,sg,part
919 pron/det,sg,term
920 pron/det,sg,tr
921 pron/indef,pl,abes
922 pron/indef,pl,abl
923 pron/indef,pl,ad
924 pron/indef,pl,all
925 pron/indef,pl,el
926 pron/indef,pl,es
927 pron/indef,pl,gen
928 pron/indef,pl,ill
929 pron/indef,pl,in
930 pron/indef,pl,kom
931 pron/indef,pl,nom
932 pron/indef,pl,part
933 pron/indef,pl,term
934 pron/indef,pl,tr
935 pron/indef,sg,abes
936 pron/indef,sg,abl
937 pron/indef,sg,ad
938 pron/indef,sg,adit
939 pron/indef,sg,all
940 pron/indef,sg,el
941 pron/indef,sg,es
942 pron/indef,sg,gen
943 pron/indef,sg,ill
944 pron/indef,sg,in
945 pron/indef,sg,kom
946 pron/indef,sg,nom
947 pron/indef,sg,part
948 pron/indef,sg,term
949 pron/indef,sg,tr
950 pron/inter,pl,abes
951 pron/inter,pl,abl
952 pron/inter,pl,ad
953 pron/inter,pl,all
954 pron/inter,pl,el
955 pron/inter,pl,es
956 pron/inter,pl,gen
957 pron/inter,pl,ill
958 pron/inter,pl,in
959 pron/inter,pl,kom
960 pron/inter,pl,nom
961 pron/inter,pl,part
962 pron/inter,pl,term
963 pron/inter,pl,tr
964 pron/inter,sg,abes
965 pron/inter,sg,abl
966 pron/inter,sg,ad
967 pron/inter,sg,all
968 pron/inter,sg,el
969 pron/inter,sg,es
970 pron/inter,sg,gen
971 pron/inter,sg,ill
972 pron/inter,sg,in
973 pron/inter,sg,kom
974 pron/inter,sg,nom
975 pron/inter,sg,part
976 pron/inter,sg,term
977 pron/inter,sg,tr
978 pron/pers,ps1,pl,abes
979 pron/pers,ps1,pl,abl
980 pron/pers,ps1,pl,ad
981 pron/pers,ps1,pl,all
982 pron/pers,ps1,pl,el
983 pron/pers,ps1,pl,es
984 pron/pers,ps1,pl,gen
985 pron/pers,ps1,pl,ill
986 pron/pers,ps1,pl,in
987 pron/pers,ps1,pl,kom
988 pron/pers,ps1,pl,nom
989 pron/pers,ps1,pl,part
990 pron/pers,ps1,pl,term
991 pron/pers,ps1,pl,tr
992 pron/pers,ps1,sg,abes
993 pron/pers,ps1,sg,abl
994 pron/pers,ps1,sg,ad
995 pron/pers,ps1,sg,all
996 pron/pers,ps1,sg,el
997 pron/pers,ps1,sg,es
998 pron/pers,ps1,sg,gen
999 pron/pers,ps1,sg,ill
1000 pron/pers,ps1,sg,in
1001 pron/pers,ps1,sg,kom
1002 pron/pers,ps1,sg,nom
1003 pron/pers,ps1,sg,part
1004 pron/pers,ps1,sg,term
1005 pron/pers,ps1,sg,tr
1006 pron/pers,ps2,pl,abes
1007 pron/pers,ps2,pl,abl
1008 pron/pers,ps2,pl,ad
1009 pron/pers,ps2,pl,all
1010 pron/pers,ps2,pl,el
1011 pron/pers,ps2,pl,es
1012 pron/pers,ps2,pl,gen
1013 pron/pers,ps2,pl,ill
1014 pron/pers,ps2,pl,in
1015 pron/pers,ps2,pl,kom
1016 pron/pers,ps2,pl,nom
1017 pron/pers,ps2,pl,part
1018 pron/pers,ps2,pl,term
1019 pron/pers,ps2,pl,tr
1020 pron/pers,ps2,sg,abes
1021 pron/pers,ps2,sg,abl
1022 pron/pers,ps2,sg,ad
1023 pron/pers,ps2,sg,all
1024 pron/pers,ps2,sg,el
1025 pron/pers,ps2,sg,es
1026 pron/pers,ps2,sg,gen
1027 pron/pers,ps2,sg,ill
1028 pron/pers,ps2,sg,in
1029 pron/pers,ps2,sg,kom
1030 pron/pers,ps2,sg,nom
1031 pron/pers,ps2,sg,part
1032 pron/pers,ps2,sg,term
1033 pron/pers,ps2,sg,tr
1034 pron/pers,ps3,pl,abes
1035 pron/pers,ps3,pl,abl
1036 pron/pers,ps3,pl,ad
1037 pron/pers,ps3,pl,all
1038 pron/pers,ps3,pl,el
1039 pron/pers,ps3,pl,es
1040 pron/pers,ps3,pl,gen
1041 pron/pers,ps3,pl,ill
1042 pron/pers,ps3,pl,in
1043 pron/pers,ps3,pl,kom
1044 pron/pers,ps3,pl,nom
1045 pron/pers,ps3,pl,part
1046 pron/pers,ps3,pl,term
1047 pron/pers,ps3,pl,tr
1048 pron/pers,ps3,sg,abes
1049 pron/pers,ps3,sg,abl
1050 pron/pers,ps3,sg,ad
1051 pron/pers,ps3,sg,all
1052 pron/pers,ps3,sg,el
1053 pron/pers,ps3,sg,es
1054 pron/pers,ps3,sg,gen
1055 pron/pers,ps3,sg,ill
1056 pron/pers,ps3,sg,in
1057 pron/pers,ps3,sg,kom
1058 pron/pers,ps3,sg,nom
1059 pron/pers,ps3,sg,part
1060 pron/pers,ps3,sg,term
1061 pron/pers,ps3,sg,tr
1062 pron/pos,pl,abes
1063 pron/pos,pl,abl
1064 pron/pos,pl,ad
1065 pron/pos,pl,all
1066 pron/pos,pl,el
1067 pron/pos,pl,es
1068 pron/pos,pl,gen
1069 pron/pos,pl,ill
1070 pron/pos,pl,in
1071 pron/pos,pl,kom
1072 pron/pos,pl,nom
1073 pron/pos,pl,part
1074 pron/pos,pl,term
1075 pron/pos,pl,tr
1076 pron/pos,sg,abes
1077 pron/pos,sg,abl
1078 pron/pos,sg,ad
1079 pron/pos,sg,all
1080 pron/pos,sg,el
1081 pron/pos,sg,es
1082 pron/pos,sg,gen
1083 pron/pos,sg,ill
1084 pron/pos,sg,in
1085 pron/pos,sg,kom
1086 pron/pos,sg,nom
1087 pron/pos,sg,part
1088 pron/pos,sg,term
1089 pron/pos,sg,tr
1090 pron/rec,sg,all
1091 pron/refl,pl,abes
1092 pron/refl,pl,abl
1093 pron/refl,pl,ad
1094 pron/refl,pl,all
1095 pron/refl,pl,el
1096 pron/refl,pl,es
1097 pron/refl,pl,gen
1098 pron/refl,pl,ill
1099 pron/refl,pl,in
1100 pron/refl,pl,kom
1101 pron/refl,pl,nom
1102 pron/refl,pl,part
1103 pron/refl,pl,term
1104 pron/refl,pl,tr
1105 pron/refl,sg,abes
1106 pron/refl,sg,abl
1107 pron/refl,sg,ad
1108 pron/refl,sg,all
1109 pron/refl,sg,el
1110 pron/refl,sg,es
1111 pron/refl,sg,gen
1112 pron/refl,sg,ill
1113 pron/refl,sg,in
1114 pron/refl,sg,kom
1115 pron/refl,sg,nom
1116 pron/refl,sg,part
1117 pron/refl,sg,term
1118 pron/refl,sg,tr
1119 pron/rel,pl,abes
1120 pron/rel,pl,abl
1121 pron/rel,pl,ad
1122 pron/rel,pl,all
1123 pron/rel,pl,el
1124 pron/rel,pl,es
1125 pron/rel,pl,gen
1126 pron/rel,pl,ill
1127 pron/rel,pl,in
1128 pron/rel,pl,kom
1129 pron/rel,pl,nom
1130 pron/rel,pl,part
1131 pron/rel,pl,term
1132 pron/rel,pl,tr
1133 pron/rel,sg,abes
1134 pron/rel,sg,abl
1135 pron/rel,sg,ad
1136 pron/rel,sg,all
1137 pron/rel,sg,el
1138 pron/rel,sg,es
1139 pron/rel,sg,gen
1140 pron/rel,sg,ill
1141 pron/rel,sg,in
1142 pron/rel,sg,kom
1143 pron/rel,sg,nom
1144 pron/rel,sg,part
1145 pron/rel,sg,term
1146 pron/rel,sg,tr
1147 prop/prop,pl,abes
1148 prop/prop,pl,abl
1149 prop/prop,pl,ad
1150 prop/prop,pl,all
1151 prop/prop,pl,el
1152 prop/prop,pl,es
1153 prop/prop,pl,gen
1154 prop/prop,pl,ill
1155 prop/prop,pl,in
1156 prop/prop,pl,kom
1157 prop/prop,pl,nom
1158 prop/prop,pl,part
1159 prop/prop,pl,term
1160 prop/prop,pl,tr
1161 prop/prop,sg,abes
1162 prop/prop,sg,abl
1163 prop/prop,sg,ad
1164 prop/prop,sg,adit
1165 prop/prop,sg,all
1166 prop/prop,sg,el
1167 prop/prop,sg,es
1168 prop/prop,sg,gen
1169 prop/prop,sg,ill
1170 prop/prop,sg,in
1171 prop/prop,sg,kom
1172 prop/prop,sg,nom
1173 prop/prop,sg,part
1174 prop/prop,sg,term
1175 prop/prop,sg,tr
1176 prp/pre
1177 prp/pre,.el
1178 prp/pre,.gen
1179 prp/pre,.kom
1180 prp/pre,.part
1181 pst/post
1182 pst/post,.el
1183 pst/post,.gen
1184 pst/post,.nom
1185 pst/post,.part
1186 punc/--
1187 punc/Com
1188 punc/Exc
1189 punc/Fst
1190 punc/Int
1191 v/aux,cond,pres,ps,af
1192 v/aux,cond,pres,ps,neg
1193 v/aux,indic,impf,ps1,pl,ps,af
1194 v/aux,indic,impf,ps1,sg,ps,af
1195 v/aux,indic,impf,ps2,pl,ps,af
1196 v/aux,indic,impf,ps2,sg,ps,af
1197 v/aux,indic,impf,ps3,pl,ps,af
1198 v/aux,indic,impf,ps3,sg,ps,af
1199 v/aux,indic,pres,ps,neg
1200 v/aux,indic,pres,ps1,pl,ps,af
1201 v/aux,indic,pres,ps1,sg,ps,af
1202 v/aux,indic,pres,ps2,pl,ps,af
1203 v/aux,indic,pres,ps2,sg,ps,af
1204 v/aux,indic,pres,ps3,pl,ps,af
1205 v/aux,indic,pres,ps3,sg,ps,af
1206 v/main,cond,past,imps,af
1207 v/main,cond,past,ps,af
1208 v/main,cond,pres,imps,af
1209 v/main,cond,pres,ps,neg
1210 v/main,cond,pres,ps1,pl,ps,af
1211 v/main,cond,pres,ps1,sg,ps,af
1212 v/main,cond,pres,ps2,pl,ps,af
1213 v/main,cond,pres,ps2,sg,ps,af
1214 v/main,cond,pres,ps3,pl,ps,af
1215 v/main,cond,pres,ps3,sg,ps,af
1216 v/main,ger
1217 v/main,imper,pres,ps1,pl,ps,af
1218 v/main,imper,pres,ps1,sg,ps,af
1219 v/main,imper,pres,ps2,pl,ps,af
1220 v/main,imper,pres,ps2,sg,ps,af
1221 v/main,imper,pres,ps3,pl,ps,af
1222 v/main,imper,pres,ps3,sg,ps,af
1223 v/main,indic,impf,imps,af
1224 v/main,indic,impf,imps,neg
1225 v/main,indic,impf,ps,neg
1226 v/main,indic,impf,ps1,pl,ps,af
1227 v/main,indic,impf,ps1,sg,ps,af
1228 v/main,indic,impf,ps2,pl,ps,af
1229 v/main,indic,impf,ps2,sg,ps,af
1230 v/main,indic,impf,ps3,pl,ps,af
1231 v/main,indic,impf,ps3,sg,ps,af
1232 v/main,indic,pres,imps,af
1233 v/main,indic,pres,ps,neg
1234 v/main,indic,pres,ps1,pl,ps,af
1235 v/main,indic,pres,ps1,sg,ps,af
1236 v/main,indic,pres,ps2,pl,ps,af
1237 v/main,indic,pres,ps2,sg,ps,af
1238 v/main,indic,pres,ps3,pl,ps,af
1239 v/main,indic,pres,ps3,sg,ps,af
1240 v/main,inf
1241 v/main,partic,past,imps
1242 v/main,partic,past,ps
1243 v/main,quot,pres,ps,af
1244 v/main,sup,ps,abes
1245 v/main,sup,ps,el
1246 v/main,sup,ps,ill
1247 v/main,sup,ps,in
1248 v/mod,cond,pres,ps,neg
1249 v/mod,cond,pres,ps1,pl,ps,af
1250 v/mod,cond,pres,ps1,sg,ps,af
1251 v/mod,cond,pres,ps2,pl,ps,af
1252 v/mod,cond,pres,ps2,sg,ps,af
1253 v/mod,cond,pres,ps3,pl,ps,af
1254 v/mod,cond,pres,ps3,sg,ps,af
1255 v/mod,indic,impf,ps,neg
1256 v/mod,indic,impf,ps1,pl,ps,af
1257 v/mod,indic,impf,ps1,sg,ps,af
1258 v/mod,indic,impf,ps2,pl,ps,af
1259 v/mod,indic,impf,ps2,sg,ps,af
1260 v/mod,indic,impf,ps3,pl,ps,af
1261 v/mod,indic,impf,ps3,sg,ps,af
1262 v/mod,indic,pres,ps,neg
1263 v/mod,indic,pres,ps1,pl,ps,af
1264 v/mod,indic,pres,ps1,sg,ps,af
1265 v/mod,indic,pres,ps2,pl,ps,af
1266 v/mod,indic,pres,ps2,sg,ps,af
1267 v/mod,indic,pres,ps3,pl,ps,af
1268 v/mod,indic,pres,ps3,sg,ps,af
1269 x/--
1270 end_of_list
1271 ;
1272 # Protect from editors that replace tabs by spaces.
1273 $list =~ s/[ \t]+/\t/sg;
1274 my @list = split(/\r?\n/, $list);
1275 return \@list;
1276 }
1277  
1278  
1279  
1280 1;
1281  
1282 __END__
1283  
1284 =pod
1285  
1286 =encoding UTF-8
1287  
1288 =head1 NAME
1289  
1290 Lingua::Interset::Tagset::ET::Puudepank - Driver for the Estonian tagset from the Eesti keele puudepank (Estonian Language Treebank).
1291  
1292 =head1 VERSION
1293  
1294 version 3.014
1295  
1296 =head1 SYNOPSIS
1297  
1298 use Lingua::Interset::Tagset::ET::Puudepank;
1299 my $driver = Lingua::Interset::Tagset::ET::Puudepank->new();
1300 my $fs = $driver->decode('n/com,sg,nom');
1301  
1302 or
1303  
1304 use Lingua::Interset qw(decode);
1305 my $fs = decode('et::puudepank', 'n/com,sg,nom');
1306  
1307 =head1 DESCRIPTION
1308  
1309 Interset driver for the Estonian tagset from the Eesti keele puudepank (Estonian Language Treebank).
1310 Tag is the part of speech followed by a slash and the morphosyntactic features, separated by commas.
1311  
1312 =head1 SEE ALSO
1313  
1314 L<Lingua::Interset>,
1315 L<Lingua::Interset::Tagset>,
1316 L<Lingua::Interset::FeatureStructure>
1317  
1318 =head1 AUTHOR
1319  
1320 Dan Zeman <zeman@ufal.mff.cuni.cz>
1321  
1322 =head1 COPYRIGHT AND LICENSE
1323  
1324 This software is copyright (c) 2019 by Univerzita Karlova (Charles University).
1325  
1326 This is free software; you can redistribute it and/or modify it under
1327 the same terms as the Perl 5 programming language system itself.
1328  
1329 =cut