Interset/Tagset/LA/It.pm untested

filter: Statementstmt 0.0% 0 / 291 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 12 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 311 CC 2 SCAR 9.6
CC
2
Cov
0%
encode
6.0
get_tagset_id
2.0
_create_features
2.0
CRAP 2.6
1 # ABSTRACT: Driver for the positional tagset of the Index Thomisticus Treebank.
2 # Copyright © 2015 Dan Zeman <zeman@ufal.mff.cuni.cz>
3  
4 package Lingua::Interset::Tagset::LA::It;
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 'features' => ( isa => 'ArrayRef', is => 'ro', builder => '_create_features', lazy => 1 );
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 # The la::it and la::itconll drivers have mutually compatible values of the
32 # other feature, thus they should use the same value of the tagset feature.
33 return 'la::it';
34 }
35  
36  
37  
38 #------------------------------------------------------------------------------
39 # Creates the list of all surface CoNLL features that can appear in the FEATS
40 # column. This list will be used in decode().
41 #------------------------------------------------------------------------------
42 sub _create_features
43 {
44 my $self = shift;
45 my @features = ('grn', 'mod', 'tem', 'grp', 'cas', 'gen', 'com', 'var', 'vgr');
46 return \@features;
47 }
48  
49  
50  
51 #------------------------------------------------------------------------------
52 # Creates atomic drivers for surface features.
53 # On-line documentation of the tagset:
54 # http://itreebank.marginalia.it/tagset/IT_tagset.pdf
55 #------------------------------------------------------------------------------
56 sub _create_atoms
57 {
58 my $self = shift;
59 my %atoms;
60 # The tagset categorizes inflection patterns but it does not directly categorize
61 # parts of speech. Thus we have
62 # 1 nominal inflection ... includes nouns, pronouns, adjectives, determiners and numerals
63 # 2 participial inflection ... something between 1 and 3: participles, gerunds and gerundives
64 # 3 verbal inflection ... includes those verb forms that do not belong to 2
65 # 4 no inflection ... includes adverbs, prepositions, conjunctions, particles and interjections
66 # It would be correct to translate the inflection types to sets of parts of speech,
67 # e.g. "1" would translate to "noun|adj|num". However, if the Interset feature structure
68 # is later used to encode another physical tag, e.g. the universal POS tag, it would have to
69 # randomly select one of these parts of speech. And then we want it to select a noun, not
70 # adjective or even a numeral. To make things simpler, we will select just one part of speech
71 # already on decoding.
72 # FLEXIONAL TYPE ####################
73 # FLEXIONAL CATEGORY ####################
74 # The first and the third character of the tag encode flectional type and category.
75 # We process them together. In the table below there is always a two-character string,
76 # whereas the first character is the third character of the tag, and the second character is the first character from the tag.
77 # (This is the ordering used when the tags are exported in the CoNLL format; see the la::itconll driver.)
78 # For example, "F1" has CPOS=1 (nominal) and "F" = uninflected: example word "hoc".
79 # The following POS values exist: A1, B1, C1, D1, E1, F1, G1, J2, K2, L2, M2, N2, J3, K3, L3, M3, N3, O4, S4, 5.
80 $atoms{subpos} = $self->create_atom
81 (
82 'surfeature' => 'subpos',
83 'decode_map' =>
84 {
85 # I declension (example: formam / forma)
86 'A1' => ['pos' => 'noun', 'other' => {'flexcat' => 'idecl'}],
87 # II declension (example: filio / filius)
88 'B1' => ['pos' => 'noun', 'other' => {'flexcat' => 'iidecl'}],
89 # III declension (example: imago / imago)
90 'C1' => ['pos' => 'noun', 'other' => {'flexcat' => 'iiidecl'}],
91 # IV declension (example: processu / processus)
92 'D1' => ['pos' => 'noun', 'other' => {'flexcat' => 'ivdecl'}],
93 # V declension (example: rerum / res)
94 'E1' => ['pos' => 'noun', 'other' => {'flexcat' => 'vdecl'}],
95 # regularly irregular declension (example: hoc / hic)
96 'F1' => ['pos' => 'noun', 'other' => {'flexcat' => 'rirdecl'}],
97 # uninflected nominal (example: quatuor)
98 'G1' => ['pos' => 'noun', 'other' => {'flexcat' => 'nodecl'}],
99 # I conjugation (example: formata / formo)
100 'J2' => ['pos' => 'verb', 'verbform' => 'part', 'other' => {'flexcat' => 'iconj'}],
101 'J3' => ['pos' => 'verb', 'other' => {'flexcat' => 'iconj'}],
102 # II conjugation (example: manent / maneo)
103 'K2' => ['pos' => 'verb', 'verbform' => 'part', 'other' => {'flexcat' => 'iiconj'}],
104 'K3' => ['pos' => 'verb', 'other' => {'flexcat' => 'iiconj'}],
105 # III conjugation (example: objicitur / objicio)
106 'L2' => ['pos' => 'verb', 'verbform' => 'part', 'other' => {'flexcat' => 'iiiconj'}],
107 'L3' => ['pos' => 'verb', 'other' => {'flexcat' => 'iiiconj'}],
108 # IV conjugation (example: invenitur / invenio)
109 'M2' => ['pos' => 'verb', 'verbform' => 'part', 'other' => {'flexcat' => 'ivconj'}],
110 'M3' => ['pos' => 'verb', 'other' => {'flexcat' => 'ivconj'}],
111 # regularly irregular conjugation (example: est / sum)
112 'N2' => ['pos' => 'verb', 'verbform' => 'part', 'other' => {'flexcat' => 'rirconj'}],
113 'N3' => ['pos' => 'verb', 'other' => {'flexcat' => 'rirconj'}],
114 # invariable (example: et)
115 'O4' => ['pos' => 'part', 'other' => {'flexcat' => 'invar'}],
116 # prepositional (always or not) particle (examples: ad, contra, in, cum, per)
117 'S4' => ['pos' => 'adp', 'adpostype' => 'prep', 'other' => {'flexcat' => 'preppart'}],
118 # pseudo-lemma / abbreviation
119 '-5' => ['abbr' => 'yes'],
120 # pseudo-lemma / number
121 'G5' => ['pos' => 'num', 'numform' => 'digit'],
122 # punctuation
123 '--' => ['pos' => 'punc']
124 },
125 'encode_map' =>
126 {
127 'pos' => { 'noun' => { 'other/flexcat' => { 'idecl' => 'A1',
128 'iidecl' => 'B1',
129 'iiidecl' => 'C1',
130 'ivdecl' => 'D1',
131 'vdecl' => 'E1',
132 'rirdecl' => 'F1',
133 'nodecl' => 'G1',
134 '@' => { 'degree' => { '' => 'G1',
135 '@' => 'A1' }}}},
136 'adj' => { 'other/flexcat' => { 'idecl' => 'A1',
137 'iidecl' => 'B1',
138 'iiidecl' => 'C1',
139 'ivdecl' => 'D1',
140 'vdecl' => 'E1',
141 'rirdecl' => 'F1',
142 'nodecl' => 'G1',
143 'iconj' => 'J2',
144 'iiconj' => 'K2',
145 'iiiconj' => 'L2',
146 'ivconj' => 'M2',
147 'rirconj' => 'N2',
148 '@' => { 'verbform' => { 'part' => 'J2',
149 'ger' => 'J2',
150 'gdv' => 'J2',
151 '@' => { 'degree' => { '' => 'G1',
152 '@' => 'A1' }}}}}},
153 'num' => { 'other/flexcat' => { 'idecl' => 'A1',
154 'iidecl' => 'B1',
155 'iiidecl' => 'C1',
156 'ivdecl' => 'D1',
157 'vdecl' => 'E1',
158 'rirdecl' => 'F1',
159 'nodecl' => 'G1',
160 '@' => { 'degree' => { '' => { 'numform' => { 'digit' => 'G5',
161 '@' => 'G1' }},
162 '@' => 'A1' }}}},
163 'verb' => { 'other/flexcat' => { 'iconj' => { 'verbform' => { 'part' => 'J2',
164 'ger' => 'J2',
165 'gdv' => 'J2',
166 '@' => 'J3' }},
167 'iiconj' => { 'verbform' => { 'part' => 'K2',
168 'ger' => 'K2',
169 'gdv' => 'K2',
170 '@' => 'K3' }},
171 'iiiconj' => { 'verbform' => { 'part' => 'L2',
172 'ger' => 'L2',
173 'gdv' => 'L2',
174 '@' => 'L3' }},
175 'ivconj' => { 'verbform' => { 'part' => 'M2',
176 'ger' => 'M2',
177 'gdv' => 'M2',
178 '@' => 'M3' }},
179 'rirconj' => { 'verbform' => { 'part' => 'N2',
180 'ger' => 'N2',
181 'gdv' => 'N2',
182 '@' => 'N3' }},
183 '@' => { 'verbform' => { 'part' => 'J2',
184 'ger' => 'J2',
185 'gdv' => 'J2',
186 '@' => 'J3' }}}},
187 'adp' => 'S4',
188 'punc' => '--',
189 '@' => { 'other/flexcat' => { 'invar' => 'O4',
190 'preppart' => 'S4',
191 '@' => { 'abbr' => { 'yes' => '-5',
192 '@' => 'O4' }}}}}
193 }
194 );
195 # 2. NOMINAL DEGREE OF COMPARISON ####################
196 $atoms{grn} = $self->create_atom
197 (
198 'surfeature' => 'grn',
199 'decode_map' =>
200 {
201 '1' => ['degree' => 'pos'],
202 '2' => ['degree' => 'cmp'],
203 '3' => ['degree' => 'sup'],
204 # not stable composition
205 # examples: inquantum, necesse-esse, intantum, proculdubio
206 '8' => ['other' => {'degree' => 'unstable'}]
207 },
208 'encode_map' =>
209 {
210 'degree' => { 'pos' => '1',
211 'cmp' => '2',
212 'sup' => '3',
213 '@' => { 'other/degree' => { 'unstable' => '8',
214 '@' => '-' }}}
215 }
216 );
217 # 4. MOOD ####################
218 $atoms{mod} = $self->create_atom
219 (
220 'surfeature' => 'mod',
221 'decode_map' =>
222 {
223 # active indicative (est, sunt, potest, oportet, habet)
224 'A' => ['verbform' => 'fin', 'mood' => 'ind', 'voice' => 'act'],
225 # passive / dep indicative (dicitur, fit, videtur, sequitur, invenitur)
226 'J' => ['verbform' => 'fin', 'mood' => 'ind', 'voice' => 'pass'],
227 # active subjunctive (sit, esset, sint, possit, habeat)
228 'B' => ['verbform' => 'fin', 'mood' => 'sub', 'voice' => 'act'],
229 # passive / dep subjunctive (dicatur, fiat, sequeretur, uniatur, moveatur)
230 'K' => ['verbform' => 'fin', 'mood' => 'sub', 'voice' => 'pass'],
231 # active imperative (puta, accipite, docete, quaerite, accipe)
232 'C' => ['verbform' => 'fin', 'mood' => 'imp', 'voice' => 'act'],
233 # passive / dep imperative (intuere)
234 'L' => ['verbform' => 'fin', 'mood' => 'imp', 'voice' => 'pass'],
235 # active participle (movens, agens, intelligens, existens, habens)
236 'D' => ['verbform' => 'part', 'voice' => 'act'],
237 # passive / dep participle (ostensum, dictum, probatum, consequens, separata)
238 'M' => ['verbform' => 'part', 'voice' => 'pass'],
239 # active gerund (essendi, agendo, cognoscendo, intelligendo, recipiendum)
240 'E' => ['verbform' => 'ger', 'voice' => 'act'],
241 # passive gerund (loquendo, operando, operandum, loquendi, ratiocinando)
242 'N' => ['verbform' => 'ger', 'voice' => 'pass'],
243 # passive / dep gerundive (dicendum, sciendum, considerandum, ostendendum, intelligendum)
244 'O' => ['verbform' => 'gdv', 'voice' => 'pass'],
245 # active supine
246 'G' => ['verbform' => 'sup', 'voice' => 'act'],
247 # passive / dep supine
248 'P' => ['verbform' => 'sup', 'voice' => 'pass'],
249 # active infinitive (esse, intelligere, habere, dicere, facere)
250 'H' => ['verbform' => 'inf', 'voice' => 'act'],
251 # passive / dep infinitive (dici, fieri, moveri, uniri, intelligi)
252 'Q' => ['verbform' => 'inf', 'voice' => 'pass']
253 },
254 'encode_map' =>
255 {
256 'voice' => { 'act' => { 'verbform' => { 'fin' => { 'mood' => { 'ind' => 'A',
257 'sub' => 'B',
258 'imp' => 'C' }},
259 'part' => 'D',
260 'ger' => 'E',
261 'gdv' => 'E',
262 'sup' => 'G',
263 '@' => 'H' }},
264 'pass' => { 'verbform' => { 'fin' => { 'mood' => { 'ind' => 'J',
265 'sub' => 'K',
266 'imp' => 'L', }},
267 'part' => 'M',
268 'ger' => 'N',
269 'gdv' => 'O',
270 'sup' => 'P',
271 '@' => 'Q' }},
272 '@' => '-' }
273 }
274 );
275 # 5. TENSE ####################
276 $atoms{tem} = $self->create_atom
277 (
278 'surfeature' => 'tem',
279 'decode_map' =>
280 {
281 # present (est, esse, sit, sunt, potest)
282 '1' => ['tense' => 'pres'],
283 # imperfect (esset, posset, essent, sequeretur, erat)
284 '2' => ['tense' => 'imp', 'aspect' => 'imp'],
285 # future (erit, sequetur, poterit, oportebit, habebit)
286 '3' => ['tense' => 'fut'],
287 # perfect (ostensum, dictum, probatum, fuit, separata)
288 '4' => ['tense' => 'past', 'aspect' => 'perf'],
289 # plusperfect (fuisset, dixerat, fecerat, accepisset, fuerat)
290 '5' => ['tense' => 'pqp', 'aspect' => 'perf'],
291 # future perfect (fuerit, voluerit, dixerint, dederit, exarserit)
292 '6' => ['tense' => 'fut', 'aspect' => 'perf']
293 },
294 'encode_map' =>
295 {
296 'tense' => { 'pres' => '1',
297 'past' => { 'aspect' => { 'imp' => '2',
298 'perf' => '4',
299 '@' => '2' }},
300 'imp' => '2',
301 'pqp' => '5',
302 'fut' => { 'aspect' => { 'perf' => '6',
303 '@' => '3' }},
304 '@' => '-' }
305 }
306 );
307 # 6. PARTICIPIAL DEGREE OF COMPARISON ####################
308 $atoms{grp} = $self->create_simple_atom
309 (
310 'intfeature' => 'degree',
311 'simple_decode_map' =>
312 {
313 '1' => 'pos',
314 '2' => 'cmp',
315 '3' => 'sup'
316 },
317 'encode_default' => '-'
318 );
319 # 7. CASE / NUMBER ####################
320 $atoms{cas} = $self->create_atom
321 (
322 'surfeature' => 'cas',
323 'decode_map' =>
324 {
325 # singular nominative (forma, quod, quae, deus, intellectus)
326 'A' => ['number' => 'sing', 'case' => 'nom'],
327 # singular genitive (formae, eius, corporis, materiae, dei)
328 'B' => ['number' => 'sing', 'case' => 'gen'],
329 # singular dative (ei, corpori, sibi, deo, formae)
330 'C' => ['number' => 'sing', 'case' => 'dat'],
331 # singular accusative (formam, se, hoc, esse, materiam)
332 'D' => ['number' => 'sing', 'case' => 'acc'],
333 # singular vocative (domine, praecipue, deus, expresse, maxime)
334 'E' => ['number' => 'sing', 'case' => 'voc'],
335 # singular ablative (forma, materia, actu, potentia, quo)
336 'F' => ['number' => 'sing', 'case' => 'abl'],
337 # adverbial (vero, solum, amplius, similiter, primo)
338 'G' => ['number' => 'sing', 'case' => 'loc'],
339 # casus “plurimus” (hoc, se)
340 'H' => ['other' => {'case' => 'plurimus'}],
341 # plural nominative (quae, formae, omnia, qui, substantiae)
342 'J' => ['number' => 'plur', 'case' => 'nom'],
343 # plural genitive (rerum, eorum, omnium, formarum, quorum)
344 'K' => ['number' => 'plur', 'case' => 'gen'],
345 # plural dative (eis, nobis, corporibus, aliis, omnibus)
346 'L' => ['number' => 'plur', 'case' => 'dat'],
347 # plural accusative (formas, se, omnia, ea, quae)
348 'M' => ['number' => 'plur', 'case' => 'acc'],
349 # plural vocative
350 'N' => ['number' => 'plur', 'case' => 'voc'],
351 # plural ablative (rebus, quibus, his, aliis, omnibus)
352 'O' => ['number' => 'plur', 'case' => 'abl']
353 },
354 'encode_map' =>
355 {
356 'number' => { 'plur' => { 'case' => { 'nom' => 'J',
357 'gen' => 'K',
358 'dat' => 'L',
359 'acc' => 'M',
360 'voc' => 'N',
361 'abl' => 'O',
362 '@' => '-' }},
363 '@' => { 'case' => { 'nom' => 'A',
364 'gen' => 'B',
365 'dat' => 'C',
366 'acc' => 'D',
367 'voc' => 'E',
368 'abl' => 'F',
369 'loc' => 'G',
370 '@' => { 'other/case' => { 'plurimus' => 'H',
371 '@' => '-' }}}}}
372 }
373 );
374 # 8. GENDER / NUMBER / PERSON ####################
375 $atoms{gen} = $self->create_atom
376 (
377 'surfeature' => 'gen',
378 'decode_map' =>
379 {
380 # masculine (intellectus, deus, actu, qui, deo)
381 '1' => ['gender' => 'masc'],
382 # feminine (forma, formam, formae, quae, materia)
383 '2' => ['gender' => 'fem'],
384 # neuter (quod, hoc, esse, quae, aliquid)
385 '3' => ['gender' => 'neut'],
386 # I singular (dico, respondeo, ostendi, attribui, baptizo)
387 '4' => ['number' => 'sing', 'person' => '1'],
388 # II singular (puta, facisti, es, odisti, dicas)
389 '5' => ['number' => 'sing', 'person' => '2'],
390 # III singular (est, sit, potest, oportet, habet)
391 '6' => ['number' => 'sing', 'person' => '3'],
392 # I plural (dicimus, videmus, possumus, intelligimus, cognoscimus)
393 '7' => ['number' => 'plur', 'person' => '1'],
394 # II plural (accipite, docete, estis, quaerite, ambuletis)
395 '8' => ['number' => 'plur', 'person' => '2'],
396 # III plural (sunt, sint, habent, possunt, dicuntur)
397 '9' => ['number' => 'plur', 'person' => '3']
398 },
399 'encode_map' =>
400 {
401 'gender' => { 'masc' => '1',
402 'fem' => '2',
403 'neut' => '3',
404 '@' => { 'person' => { '1' => { 'number' => { 'sing' => '4',
405 '@' => '7' }},
406 '2' => { 'number' => { 'sing' => '5',
407 '@' => '8' }},
408 '3' => { 'number' => { 'sing' => '6',
409 '@' => '9' }},
410 '@' => '-' }}}
411 }
412 );
413 # 9. COMPOSITION ####################
414 $atoms{com} = $self->create_atom
415 (
416 'surfeature' => 'com',
417 'decode_map' =>
418 {
419 # enclitic -ce
420 'A' => ['other' => {'com' => 'ce'}],
421 # enclitic -cum (nobiscum, secum)
422 'C' => ['other' => {'com' => 'cum'}],
423 # enclitic -met (ipsemet, ipsamet, ipsammet, ipsummet)
424 'M' => ['other' => {'com' => 'met'}],
425 # enclitic -ne
426 'N' => ['other' => {'com' => 'ne'}],
427 # enclitic -que (namque, corpori, eam, eandem, earumque)
428 'Q' => ['other' => {'com' => 'que'}],
429 # enclitic -tenus (aliquatenus, quatenus)
430 'T' => ['other' => {'com' => 'tenus'}],
431 # enclitic -ve (quid)
432 'V' => ['other' => {'com' => 've'}],
433 # ending homographic with enclitic (ratione, absque, quandoque, utrumque, cognitione)
434 'H' => ['other' => {'com' => 'homographic'}],
435 # composed with other form (inquantum, necesse-esse, intantum, proculdubio)
436 'Z' => ['other' => {'com' => 'other'}],
437 # composed as lemma
438 'W' => ['other' => {'com' => 'lemma'}]
439 },
440 'encode_map' =>
441 {
442 'other/com' => { 'ce' => 'A',
443 'cum' => 'C',
444 'met' => 'M',
445 'ne' => 'N',
446 'que' => 'Q',
447 'tenus' => 'T',
448 've' => 'V',
449 'homographic' => 'H',
450 'other' => 'Z',
451 'lemma' => 'W',
452 '@' => '-' }
453 }
454 );
455 # 10. FORMAL VARIATION ####################
456 $atoms{var} = $self->create_atom
457 (
458 'surfeature' => 'var',
459 'decode_map' =>
460 {
461 # I variation of wordform (qua, aliquod, aliquis, quoddam, quis)
462 'A' => ['variant' => '1'],
463 # II variation of wordform
464 'B' => ['variant' => '2'],
465 # III variation of wordform (illuc)
466 'C' => ['variant' => '3'],
467 # author mistake, or bad reading? (quod)
468 'x' => ['typo' => 'yes'],
469 'X' => ['typo' => 'yes']
470 },
471 'encode_map' =>
472 {
473 'typo' => { 'yes' => 'X',
474 '@' => { 'variant' => { '' => '-',
475 '1' => 'A',
476 '2' => 'B',
477 '@' => 'C' }}}
478 }
479 );
480 # 11. GRAPHICAL VARIATION ####################
481 $atoms{vgr} = $self->create_atom
482 (
483 'surfeature' => 'vgr',
484 'decode_map' =>
485 {
486 # base form (sed, quae, ut, sicut, cum)
487 '1' => ['other' => {'vgr' => '1'}],
488 # graphical variations of “1” (ex, ab, eius, huiusmodi, cuius)
489 '2' => ['other' => {'vgr' => '2'}],
490 # (uniuscuiusque, cuiuscumque, 2-2, ioannis, joannem)
491 '3' => ['other' => {'vgr' => '3'}],
492 # (joannis)
493 '4' => ['other' => {'vgr' => '4'}]
494 },
495 'encode_map' =>
496 {
497 'other/vgr' => { '1' => '1',
498 '2' => '2',
499 '3' => '3',
500 '4' => '4',
501 '@' => '-' }
502 }
503 );
504 return \%atoms;
505 }
506  
507  
508  
509 #------------------------------------------------------------------------------
510 # Decodes a physical tag (string) and returns the corresponding feature
511 # structure.
512 #------------------------------------------------------------------------------
513 sub decode
514 {
515 my $self = shift;
516 my $tag = shift;
517 my $fs = Lingua::Interset::FeatureStructure->new();
518 $fs->set_tagset($self->get_tagset_id());
519 my $atoms = $self->atoms();
520 # The tag is an eleven-position string.
521 my @chars = split(//, $tag);
522 my $subpos = $chars[2].$chars[0];
523 shift(@chars);
524 splice(@chars, 1, 1);
525 $atoms->{subpos}->decode_and_merge_hard($subpos, $fs);
526 my $features = $self->features();
527 for (my $i = 0; $i <= $#chars; $i++)
528 {
529 $atoms->{$features->[$i]}->decode_and_merge_hard($chars[$i], $fs);
530 }
531 return $fs;
532 }
533  
534  
535  
536 #------------------------------------------------------------------------------
537 # Takes feature structure and returns the corresponding physical tag (string).
538 #------------------------------------------------------------------------------
539 sub encode
540 {
541 my $self = shift;
542 my $fs = shift; # Lingua::Interset::FeatureStructure
543 my $atoms = $self->atoms();
544 my $subpos = $atoms->{subpos}->encode($fs);
545 my $features = $self->features();
546 my $tag = $subpos.join('', map {$atoms->{$_}->encode($fs)} (@{$features}));
547 if($tag =~ m/^Punc/)
548 {
549 $tag = '-----------';
550 }
551 else
552 {
553 $tag =~ s/^(.)(.)(.)/$2$3$1/;
554 }
555 # There are two positions for degree of comparison. Only one should be used.
556 $tag =~ s/^(1....)[123]/$1-/;
557 $tag =~ s/^(2)[123]/$1-/;
558 return $tag;
559 }
560  
561  
562  
563 #------------------------------------------------------------------------------
564 # Returns reference to list of known tags.
565 # Tags were collected from the corpus: total 1492 tags.
566 # Removed wrong tags, kept 1476 tags.
567 # Added unknown tags for empty other feature: total 1635 tags.
568 #------------------------------------------------------------------------------
569 sub list
570 {
571 my $self = shift;
572 my $list = <<end_of_list
573 -----------
574 1-G--------
575 1-G-------1
576 1-G----1---
577 1-G----1--1
578 1-G----2---
579 1-G----2--1
580 1-G----3---
581 1-G----3--1
582 1-G---A3---
583 1-G---A3--1
584 1-G---B3---
585 1-G---C3---
586 1-G---D1---
587 1-G---D1--1
588 1-G---D3---
589 1-G---D3--1
590 1-G---F3---
591 1-G---G----
592 1-G---G---1
593 11A----1---
594 11A----2---
595 11A---A----
596 11A---A1---
597 11A---A1--1
598 11A---A1-A-
599 11A---A2---
600 11A---A2--1
601 11A---A2--2
602 11A---A2-A-
603 11A---A3---
604 11A---A3-A-
605 11A---B----
606 11A---B1---
607 11A---B1--1
608 11A---B2---
609 11A---B2--1
610 11A---B2--2
611 11A---B3---
612 11A---C1---
613 11A---C1--1
614 11A---C2---
615 11A---C2--1
616 11A---C3---
617 11A---D----
618 11A---D1---
619 11A---D1-A-
620 11A---D2---
621 11A---D2--1
622 11A---D2--2
623 11A---D2-A-
624 11A---D3---
625 11A---D3-A-
626 11A---E1---
627 11A---F----
628 11A---F1---
629 11A---F2---
630 11A---F2--1
631 11A---F2--2
632 11A---F2-A-
633 11A---F3---
634 11A---G----
635 11A---G--A-
636 11A---G--C-
637 11A---J1---
638 11A---J1--1
639 11A---J1--2
640 11A---J2---
641 11A---J2--1
642 11A---J2-A-
643 11A---J3---
644 11A---J3--1
645 11A---J3-A-
646 11A---K----
647 11A---K1---
648 11A---K1--2
649 11A---K2---
650 11A---K2--1
651 11A---K3---
652 11A---L1---
653 11A---L2---
654 11A---L2--1
655 11A---L3---
656 11A---M----
657 11A---M1---
658 11A---M2---
659 11A---M2--1
660 11A---M2-A-
661 11A---M3---
662 11A---M3--1
663 11A---O----
664 11A---O1---
665 11A---O1--1
666 11A---O2---
667 11A---O2--1
668 11A---O3---
669 11A---O3--1
670 11A-1-M3---
671 11B---A1---
672 11B---A1--1
673 11B---A1--2
674 11B---A2---
675 11B---A2--1
676 11B---A2--2
677 11B---A3---
678 11B---A3--1
679 11B---A3--2
680 11B---A3H--
681 11B---B1---
682 11B---B1--1
683 11B---B1--2
684 11B---B2---
685 11B---B3---
686 11B---B3--1
687 11B---B3--2
688 11B---C1---
689 11B---C1--1
690 11B---C2---
691 11B---C3---
692 11B---C3--1
693 11B---C3--2
694 11B---D1---
695 11B---D1--1
696 11B---D2---
697 11B---D2--2
698 11B---D3---
699 11B---D3--1
700 11B---D3--2
701 11B---E1---
702 11B---E1--1
703 11B---E1H--
704 11B---F1---
705 11B---F1--1
706 11B---F3---
707 11B---F3--1
708 11B---F3--2
709 11B---G----
710 11B---G---1
711 11B---G---2
712 11B---G-H--
713 11B---G-H-1
714 11B---J1---
715 11B---J1--1
716 11B---J1--2
717 11B---J2---
718 11B---J3---
719 11B---J3--1
720 11B---J3--2
721 11B---K1---
722 11B---K1--1
723 11B---K1--2
724 11B---K2---
725 11B---K3---
726 11B---K3--1
727 11B---K3--2
728 11B---L1---
729 11B---L1--1
730 11B---L3---
731 11B---L3--1
732 11B---M1---
733 11B---M1--1
734 11B---M3---
735 11B---M3--1
736 11B---M3--2
737 11B---O1---
738 11B---O1--1
739 11B---O2---
740 11B---O2--1
741 11B---O3---
742 11B---O3--1
743 11B---O3--2
744 11C---A----
745 11C---A1---
746 11C---A1--1
747 11C---A1--2
748 11C---A2---
749 11C---A2--1
750 11C---A2--2
751 11C---A3---
752 11C---A3--1
753 11C---B1---
754 11C---B1--1
755 11C---B1--3
756 11C---B1--4
757 11C---B2---
758 11C---B2--1
759 11C---B2--2
760 11C---B3---
761 11C---B3--1
762 11C---B3--2
763 11C---C1---
764 11C---C1--1
765 11C---C1--2
766 11C---C2---
767 11C---C2--1
768 11C---C3---
769 11C---C3--1
770 11C---C3Q--
771 11C---D----
772 11C---D1---
773 11C---D1--1
774 11C---D1--3
775 11C---D2---
776 11C---D2--1
777 11C---D2--2
778 11C---D3---
779 11C---D3--1
780 11C---D3-A-
781 11C---D3H--
782 11C---E1---
783 11C---F----
784 11C---F1---
785 11C---F1--1
786 11C---F1H--
787 11C---F2---
788 11C---F2--1
789 11C---F2H--
790 11C---F2H-1
791 11C---F2H-2
792 11C---F3---
793 11C---F3--1
794 11C---F3H--
795 11C---F3H-1
796 11C---G----
797 11C---G---1
798 11C---G---2
799 11C---J1---
800 11C---J1--1
801 11C---J2---
802 11C---J2--1
803 11C---J2--2
804 11C---J3---
805 11C---J3--1
806 11C---K----
807 11C---K1---
808 11C---K1--1
809 11C---K2---
810 11C---K2--1
811 11C---K3---
812 11C---K3--1
813 11C---L1---
814 11C---L1--1
815 11C---L2---
816 11C---L2--1
817 11C---L2--2
818 11C---L3---
819 11C---L3--1
820 11C---M1---
821 11C---M1--1
822 11C---M2---
823 11C---M2--1
824 11C---M2--2
825 11C---M3---
826 11C---M3--1
827 11C---O----
828 11C---O1---
829 11C---O1--1
830 11C---O1--2
831 11C---O2---
832 11C---O2--1
833 11C---O2--2
834 11C---O3---
835 11C---O3--1
836 11D---A1---
837 11D---A1--1
838 11D---A2---
839 11D---A3---
840 11D---B1---
841 11D---B1--1
842 11D---B2---
843 11D---C1---
844 11D---C2---
845 11D---C3---
846 11D---D1---
847 11D---D1--1
848 11D---D2---
849 11D---D3---
850 11D---F1---
851 11D---F1--1
852 11D---F2---
853 11D---F3---
854 11D---G----
855 11D---J1---
856 11D---J3---
857 11D---K1---
858 11D---K2---
859 11D---L1---
860 11D---M1---
861 11D---M2---
862 11D---O1---
863 11D---O3---
864 11E---A1---
865 11E---A2---
866 11E---A2--1
867 11E---B1---
868 11E---B2---
869 11E---C2---
870 11E---D1---
871 11E---D2---
872 11E---F1---
873 11E---F2---
874 11E---G----
875 11E---J1---
876 11E---J2---
877 11E---K1---
878 11E---K2---
879 11E---K3---
880 11E---L2---
881 11E---M1---
882 11E---M2---
883 11E---O1---
884 11E---O2---
885 11F---A1---
886 11F---A1--1
887 11F---A1--2
888 11F---A1-A-
889 11F---A1H--
890 11F---A1M--
891 11F---A2---
892 11F---A2--1
893 11F---A2--2
894 11F---A2-A-
895 11F---A2H--
896 11F---A2M--
897 11F---A2T--
898 11F---A3---
899 11F---A3--1
900 11F---A3--2
901 11F---A3-A-
902 11F---A3H-2
903 11F---A3M--
904 11F---A3V--
905 11F---B---2
906 11F---B-H--
907 11F---B1---
908 11F---B1--1
909 11F---B1--2
910 11F---B1H--
911 11F---B2---
912 11F---B2--1
913 11F---B2--2
914 11F---B2--3
915 11F---B2H--
916 11F---B3---
917 11F---B3--1
918 11F---B3--2
919 11F---B3--3
920 11F---B3H--
921 11F---C1---
922 11F---C1--1
923 11F---C1H--
924 11F---C2---
925 11F---C2--1
926 11F---C3---
927 11F---C3H--
928 11F---D1---
929 11F---D1--1
930 11F---D1--2
931 11F---D1-A-
932 11F---D2---
933 11F---D2--1
934 11F---D2--2
935 11F---D2-A-
936 11F---D2H-2
937 11F---D2M--
938 11F---D2Q--
939 11F---D2Q-1
940 11F---D3---
941 11F---D3--1
942 11F---D3--2
943 11F---D3-A-
944 11F---D3H-2
945 11F---E1---
946 11F---F-T--
947 11F---F1---
948 11F---F1--1
949 11F---F1H--
950 11F---F1H-2
951 11F---F2---
952 11F---F2--1
953 11F---F2-A-
954 11F---F2C--
955 11F---F2H--
956 11F---F2H-2
957 11F---F2T--
958 11F---F3---
959 11F---F3--1
960 11F---F3C--
961 11F---F3H--
962 11F---F3H-2
963 11F---G----
964 11F---G---1
965 11F---G--A-
966 11F---G--C-
967 11F---H1---
968 11F---J1---
969 11F---J1--1
970 11F---J1--2
971 11F---J2---
972 11F---J2--1
973 11F---J2--2
974 11F---J2-A-
975 11F---J3---
976 11F---J3--1
977 11F---J3--2
978 11F---J3-A-
979 11F---K----
980 11F---K1---
981 11F---K1--1
982 11F---K1--2
983 11F---K2---
984 11F---K2--1
985 11F---K2--2
986 11F---K2Q--
987 11F---K3---
988 11F---K3--1
989 11F---K3--2
990 11F---L1---
991 11F---L1--1
992 11F---L1C--
993 11F---L2---
994 11F---L2--1
995 11F---L3---
996 11F---L3--1
997 11F---L3H-2
998 11F---M----
999 11F---M1---
1000 11F---M1--1
1001 11F---M1H--
1002 11F---M2---
1003 11F---M2--1
1004 11F---M2-A-
1005 11F---M2H--
1006 11F---M3---
1007 11F---M3--1
1008 11F---M3--2
1009 11F---M3H-2
1010 11F---O----
1011 11F---O1---
1012 11F---O1--1
1013 11F---O1--2
1014 11F---O1C--
1015 11F---O1H--
1016 11F---O1H-2
1017 11F---O2---
1018 11F---O2--1
1019 11F---O2C--
1020 11F---O2H-2
1021 11F---O3---
1022 11F---O3--1
1023 11F---O3H--
1024 11F---O3H-2
1025 11F-1-M3---
1026 12A---A1---
1027 12A---A2---
1028 12A---A3---
1029 12A---B1---
1030 12A---B2---
1031 12A---B3---
1032 12A---C1---
1033 12A---C2---
1034 12A---C3---
1035 12A---D1---
1036 12A---D2---
1037 12A---D3---
1038 12A---F1---
1039 12A---F2---
1040 12A---F3---
1041 12A---G----
1042 12A---J1---
1043 12A---J2---
1044 12A---J3---
1045 12A---K1---
1046 12A---K2---
1047 12A---K3---
1048 12A---L1---
1049 12A---L2---
1050 12A---L3---
1051 12A---M1---
1052 12A---M2---
1053 12A---M3---
1054 12A---O1---
1055 12A---O2---
1056 12A---O3---
1057 12B---A3--1
1058 12B---D3--1
1059 12B---G---1
1060 12C---A1---
1061 12C---A1--1
1062 12C---A1--2
1063 12C---A2---
1064 12C---A2--1
1065 12C---A2--2
1066 12C---A3---
1067 12C---A3--1
1068 12C---A3--2
1069 12C---B1---
1070 12C---B1--1
1071 12C---B2---
1072 12C---B2--1
1073 12C---B2--2
1074 12C---B3---
1075 12C---C1---
1076 12C---C2---
1077 12C---C3---
1078 12C---D1---
1079 12C---D1--2
1080 12C---D2---
1081 12C---D2--1
1082 12C---D2--2
1083 12C---D3---
1084 12C---D3--2
1085 12C---F1---
1086 12C---F2---
1087 12C---F2--2
1088 12C---F3---
1089 12C---F3--2
1090 12C---G----
1091 12C---G---1
1092 12C---J1---
1093 12C---J1--2
1094 12C---J2---
1095 12C---J3---
1096 12C---J3--1
1097 12C---K1---
1098 12C---K2---
1099 12C---K3---
1100 12C---L1---
1101 12C---L2---
1102 12C---L3---
1103 12C---M1---
1104 12C---M2---
1105 12C---M3---
1106 12C---M3--2
1107 12C---O1---
1108 12C---O2---
1109 12C---O3---
1110 13A---A1---
1111 13A---A2---
1112 13A---A2--1
1113 13A---A3---
1114 13A---B1---
1115 13A---B2---
1116 13A---B3---
1117 13A---C1---
1118 13A---C2---
1119 13A---C3---
1120 13A---D1---
1121 13A---D2---
1122 13A---D3---
1123 13A---E1---
1124 13A---F1---
1125 13A---F2---
1126 13A---F3---
1127 13A---G----
1128 13A---J1---
1129 13A---J2---
1130 13A---J3---
1131 13A---J3-A-
1132 13A---K1---
1133 13A---K2---
1134 13A---K3---
1135 13A---L3---
1136 13A---M1---
1137 13A---M2---
1138 13A---M3---
1139 13A---O2---
1140 13A---O3---
1141 13B---A1---
1142 13B---A2---
1143 13B---A3---
1144 13B---B1---
1145 13B---B3---
1146 13B---C1---
1147 13B---C3---
1148 13B---D1---
1149 13B---D2---
1150 13B---D3---
1151 13B---E1---
1152 13B---F1---
1153 13B---F3---
1154 13B---G----
1155 13B---G---1
1156 13B---G-Q--
1157 13B---J1---
1158 13B---J3---
1159 13B---J3-A-
1160 13B---K1---
1161 13B---K3---
1162 13B---L3---
1163 13B---M1---
1164 13B---M3---
1165 13B---O3---
1166 13C---G---1
1167 2-JD11A----
1168 2-JD11A1---
1169 2-JD11A1--1
1170 2-JD11A2---
1171 2-JD11A2--1
1172 2-JD11A3---
1173 2-JD11B1---
1174 2-JD11B1--2
1175 2-JD11B2---
1176 2-JD11B3---
1177 2-JD11C1---
1178 2-JD11C2---
1179 2-JD11C3---
1180 2-JD11D1---
1181 2-JD11D2---
1182 2-JD11D3---
1183 2-JD11D3--2
1184 2-JD11F1---
1185 2-JD11F2---
1186 2-JD11F3---
1187 2-JD11G----
1188 2-JD11J1---
1189 2-JD11J1--1
1190 2-JD11J2---
1191 2-JD11J3---
1192 2-JD11K1---
1193 2-JD11K2---
1194 2-JD11K3---
1195 2-JD11L1---
1196 2-JD11L2---
1197 2-JD11L3---
1198 2-JD11M1---
1199 2-JD11M2---
1200 2-JD11M3---
1201 2-JD11M3--1
1202 2-JD11O1---
1203 2-JD11O2---
1204 2-JD11O3---
1205 2-JD12A1---
1206 2-JD12A2---
1207 2-JD12A3---
1208 2-JD12D1---
1209 2-JD12G----
1210 2-JD13A3---
1211 2-JD13B2---
1212 2-JD13D2---
1213 2-JD31A1---
1214 2-JD31A1--2
1215 2-JD31B1---
1216 2-JD31D1---
1217 2-JD31D2---
1218 2-JD31O3---
1219 2-JE-1A3---
1220 2-JE-1B----
1221 2-JE-1B---1
1222 2-JE-1B---2
1223 2-JE-1D----
1224 2-JE-1D---1
1225 2-JE-1D---2
1226 2-JE-1F----
1227 2-JE-1F---1
1228 2-JE-1F---2
1229 2-JE-1F3---
1230 2-JM-1F3---
1231 2-JM11A1---
1232 2-JM11A2---
1233 2-JM11A3---
1234 2-JM11B1---
1235 2-JM11B2---
1236 2-JM11B3---
1237 2-JM11C2---
1238 2-JM11D1---
1239 2-JM11D2---
1240 2-JM11D3---
1241 2-JM11F1---
1242 2-JM11F2---
1243 2-JM11F3---
1244 2-JM11G----
1245 2-JM11J1---
1246 2-JM11J2---
1247 2-JM11J3---
1248 2-JM11K1---
1249 2-JM11K2---
1250 2-JM11K3---
1251 2-JM11L1---
1252 2-JM11M1---
1253 2-JM11M2---
1254 2-JM11M3---
1255 2-JM11O1---
1256 2-JM11O2---
1257 2-JM11O3---
1258 2-JM41A1---
1259 2-JM41A1--2
1260 2-JM41A2---
1261 2-JM41A2--1
1262 2-JM41A2-A-
1263 2-JM41A3---
1264 2-JM41A3--1
1265 2-JM41B1---
1266 2-JM41B2---
1267 2-JM41B2--1
1268 2-JM41B2-A-
1269 2-JM41B3---
1270 2-JM41B3--1
1271 2-JM41C1---
1272 2-JM41C2---
1273 2-JM41C2--1
1274 2-JM41C3---
1275 2-JM41D1---
1276 2-JM41D2---
1277 2-JM41D2--1
1278 2-JM41D2-A-
1279 2-JM41D3---
1280 2-JM41D3--1
1281 2-JM41E1---
1282 2-JM41F1---
1283 2-JM41F2---
1284 2-JM41F2--1
1285 2-JM41F3---
1286 2-JM41G----
1287 2-JM41J1---
1288 2-JM41J1--1
1289 2-JM41J2---
1290 2-JM41J2--1
1291 2-JM41J3---
1292 2-JM41J3--1
1293 2-JM41K1---
1294 2-JM41K2---
1295 2-JM41K3---
1296 2-JM41L----
1297 2-JM41L1---
1298 2-JM41L2---
1299 2-JM41L3---
1300 2-JM41M1---
1301 2-JM41M2---
1302 2-JM41M3---
1303 2-JM41M3--1
1304 2-JM41O----
1305 2-JM41O1---
1306 2-JM41O2---
1307 2-JM41O3---
1308 2-JM42A1---
1309 2-JM42A2---
1310 2-JM42A3---
1311 2-JM42D2---
1312 2-JM42D3---
1313 2-JM42G----
1314 2-JM42J1---
1315 2-JM42J2---
1316 2-JM42M3---
1317 2-JM43A2---
1318 2-JM43A3---
1319 2-JM43D3---
1320 2-JM43J3---
1321 2-JM43M2---
1322 2-JM43M3---
1323 2-JN-1B----
1324 2-JN-1D----
1325 2-JN-1F----
1326 2-JO-1A1---
1327 2-JO-1A2---
1328 2-JO-1A2--1
1329 2-JO-1A3---
1330 2-JO-1A3--1
1331 2-JO-1B2---
1332 2-JO-1B2-A-
1333 2-JO-1B3---
1334 2-JO-1C2---
1335 2-JO-1D1---
1336 2-JO-1D2---
1337 2-JO-1D3---
1338 2-JO-1F2---
1339 2-JO-1J2---
1340 2-JO-1J3---
1341 2-JO-1K2---
1342 2-JO-1K3---
1343 2-JO-1M1---
1344 2-JO-1M2---
1345 2-JO-1M3---
1346 2-JO-1O1---
1347 2-JO-1O2---
1348 2-JO-1O3---
1349 2-KD11A----
1350 2-KD11A1---
1351 2-KD11A1--1
1352 2-KD11A2---
1353 2-KD11A2--1
1354 2-KD11A2--2
1355 2-KD11A3---
1356 2-KD11A3--1
1357 2-KD11B1---
1358 2-KD11B1--1
1359 2-KD11B2---
1360 2-KD11B2--1
1361 2-KD11B3---
1362 2-KD11C1---
1363 2-KD11C2---
1364 2-KD11C3---
1365 2-KD11D1---
1366 2-KD11D2---
1367 2-KD11D2--2
1368 2-KD11D3---
1369 2-KD11D3--1
1370 2-KD11F1---
1371 2-KD11F2---
1372 2-KD11F2--1
1373 2-KD11F2--2
1374 2-KD11F3---
1375 2-KD11F3--2
1376 2-KD11G----
1377 2-KD11J1---
1378 2-KD11J2---
1379 2-KD11J2--1
1380 2-KD11J3---
1381 2-KD11K2---
1382 2-KD11K3---
1383 2-KD11L1---
1384 2-KD11L3---
1385 2-KD11M2---
1386 2-KD11M3---
1387 2-KD11O1---
1388 2-KD11O2---
1389 2-KD11O3---
1390 2-KD12A2---
1391 2-KD12A3---
1392 2-KD12D1---
1393 2-KD12G----
1394 2-KD31A1---
1395 2-KD31D1---
1396 2-KE-1B----
1397 2-KE-1D----
1398 2-KE-1F----
1399 2-KE-1F---1
1400 2-KE-1F3---
1401 2-KM11J1---
1402 2-KM41A1---
1403 2-KM41A1--1
1404 2-KM41A2---
1405 2-KM41A2--1
1406 2-KM41A3---
1407 2-KM41A3--1
1408 2-KM41B1---
1409 2-KM41B2---
1410 2-KM41B3---
1411 2-KM41B3--1
1412 2-KM41C3--1
1413 2-KM41D1---
1414 2-KM41D1--1
1415 2-KM41D2---
1416 2-KM41D2--1
1417 2-KM41D3---
1418 2-KM41D3--1
1419 2-KM41F1---
1420 2-KM41F2---
1421 2-KM41F3---
1422 2-KM41F3--1
1423 2-KM41G----
1424 2-KM41J1---
1425 2-KM41J2---
1426 2-KM41J3---
1427 2-KM41J3--1
1428 2-KM41K3---
1429 2-KM41K3--1
1430 2-KM41M1---
1431 2-KM41M2---
1432 2-KM41M3---
1433 2-KM41M3--1
1434 2-KM41O1---
1435 2-KM41O2---
1436 2-KM41O3---
1437 2-KM41O3--1
1438 2-KM42A3---
1439 2-KM42D3---
1440 2-KM42M3---
1441 2-KM43J3---
1442 2-KM43M3---
1443 2-KO-1A1---
1444 2-KO-1A2---
1445 2-KO-1B2---
1446 2-KO-1B3---
1447 2-KO-1C2---
1448 2-KO-1D2---
1449 2-KO-1D3---
1450 2-KO-1J3---
1451 2-KO-1M2---
1452 2-KO-1M3---
1453 2-LD11A1---
1454 2-LD11A1--1
1455 2-LD11A1--2
1456 2-LD11A2---
1457 2-LD11A2--1
1458 2-LD11A3---
1459 2-LD11A3--1
1460 2-LD11A3--2
1461 2-LD11B1---
1462 2-LD11B1--1
1463 2-LD11B2---
1464 2-LD11B2--1
1465 2-LD11B3---
1466 2-LD11B3--1
1467 2-LD11C1---
1468 2-LD11C2---
1469 2-LD11C3---
1470 2-LD11C3--1
1471 2-LD11D1---
1472 2-LD11D2---
1473 2-LD11D2--1
1474 2-LD11D3---
1475 2-LD11D3--1
1476 2-LD11F1---
1477 2-LD11F1--1
1478 2-LD11F2---
1479 2-LD11F2--1
1480 2-LD11F3---
1481 2-LD11F3--1
1482 2-LD11G----
1483 2-LD11J1---
1484 2-LD11J1--1
1485 2-LD11J1--2
1486 2-LD11J2---
1487 2-LD11J2--1
1488 2-LD11J3---
1489 2-LD11J3--1
1490 2-LD11K1---
1491 2-LD11K1--1
1492 2-LD11K1--2
1493 2-LD11K2---
1494 2-LD11K2--1
1495 2-LD11K3---
1496 2-LD11K3--1
1497 2-LD11L1---
1498 2-LD11L2---
1499 2-LD11L2--1
1500 2-LD11L3---
1501 2-LD11M1---
1502 2-LD11M1--1
1503 2-LD11M2---
1504 2-LD11M2--1
1505 2-LD11M3---
1506 2-LD11M3--1
1507 2-LD11O1---
1508 2-LD11O2---
1509 2-LD11O2--1
1510 2-LD11O3---
1511 2-LD11O3--1
1512 2-LD12A3---
1513 2-LD13B2---
1514 2-LD13D2---
1515 2-LD31D1---
1516 2-LE-1B----
1517 2-LE-1B---2
1518 2-LE-1D----
1519 2-LE-1D---1
1520 2-LE-1F----
1521 2-LE-1F---1
1522 2-LM-1F3---
1523 2-LM11A1---
1524 2-LM11A1--1
1525 2-LM11A2---
1526 2-LM11A3---
1527 2-LM11A3--1
1528 2-LM11B2---
1529 2-LM11B3---
1530 2-LM11B3--1
1531 2-LM11D1---
1532 2-LM11D2---
1533 2-LM11D3---
1534 2-LM11F1---
1535 2-LM11F2---
1536 2-LM11F3---
1537 2-LM11G----
1538 2-LM11G---1
1539 2-LM11J1---
1540 2-LM11J2---
1541 2-LM11K1---
1542 2-LM11K1--1
1543 2-LM11K2--1
1544 2-LM11K3--1
1545 2-LM11L1---
1546 2-LM11M1---
1547 2-LM11M2---
1548 2-LM11M3--1
1549 2-LM11O1---
1550 2-LM11O2---
1551 2-LM11O3---
1552 2-LM11O3--1
1553 2-LM41A1---
1554 2-LM41A1--1
1555 2-LM41A1--2
1556 2-LM41A2---
1557 2-LM41A2--1
1558 2-LM41A2--2
1559 2-LM41A2-A-
1560 2-LM41A3---
1561 2-LM41A3--1
1562 2-LM41A3--2
1563 2-LM41B1---
1564 2-LM41B2---
1565 2-LM41B2--1
1566 2-LM41B3---
1567 2-LM41B3--1
1568 2-LM41B3--2
1569 2-LM41C1---
1570 2-LM41C2---
1571 2-LM41C3---
1572 2-LM41D1---
1573 2-LM41D1--2
1574 2-LM41D2---
1575 2-LM41D2--1
1576 2-LM41D2--2
1577 2-LM41D2-A-
1578 2-LM41D3---
1579 2-LM41D3--1
1580 2-LM41E1---
1581 2-LM41F1---
1582 2-LM41F1--1
1583 2-LM41F2---
1584 2-LM41F2--1
1585 2-LM41F2--2
1586 2-LM41F3---
1587 2-LM41F3--1
1588 2-LM41F3--2
1589 2-LM41G----
1590 2-LM41J1---
1591 2-LM41J1--1
1592 2-LM41J2---
1593 2-LM41J2--1
1594 2-LM41J2--2
1595 2-LM41J3---
1596 2-LM41J3--1
1597 2-LM41J3--2
1598 2-LM41K1---
1599 2-LM41K2---
1600 2-LM41K3---
1601 2-LM41L1---
1602 2-LM41L2---
1603 2-LM41L3---
1604 2-LM41M1---
1605 2-LM41M1--1
1606 2-LM41M2---
1607 2-LM41M3---
1608 2-LM41M3--1
1609 2-LM41O1---
1610 2-LM41O2---
1611 2-LM41O3---
1612 2-LM41O3--1
1613 2-LM42A1---
1614 2-LM42A1--1
1615 2-LM42A2---
1616 2-LM42A2--1
1617 2-LM42A3--1
1618 2-LM42D2---
1619 2-LM42J1---
1620 2-LM42J2---
1621 2-LM43A2---
1622 2-LM43A3---
1623 2-LM43J3---
1624 2-LM43M2---
1625 2-LN-1B----
1626 2-LN-1D----
1627 2-LN-1F----
1628 2-LO-1A1---
1629 2-LO-1A2---
1630 2-LO-1A2--1
1631 2-LO-1A3---
1632 2-LO-1A3--1
1633 2-LO-1A3--2
1634 2-LO-1C2--2
1635 2-LO-1D1---
1636 2-LO-1D2---
1637 2-LO-1D3---
1638 2-LO-1F2--1
1639 2-LO-1J2---
1640 2-LO-1J3---
1641 2-LO-1K3---
1642 2-LO-1M1---
1643 2-LO-1M2---
1644 2-LO-1M3---
1645 2-LO-1O2---
1646 2-LO-1O3---
1647 2-MD11A1---
1648 2-MD11A1--1
1649 2-MD11A2---
1650 2-MD11A2--1
1651 2-MD11A3---
1652 2-MD11A3--1
1653 2-MD11B1---
1654 2-MD11B2---
1655 2-MD11B3---
1656 2-MD11C1---
1657 2-MD11D1---
1658 2-MD11D2---
1659 2-MD11D2--1
1660 2-MD11D3---
1661 2-MD11D3--1
1662 2-MD11F1---
1663 2-MD11F2---
1664 2-MD11F3---
1665 2-MD11G---1
1666 2-MD11J1---
1667 2-MD11J1--1
1668 2-MD11J2---
1669 2-MD11J2--1
1670 2-MD11J3---
1671 2-MD11J3--1
1672 2-MD11L1---
1673 2-MD11M3--1
1674 2-MD11O2---
1675 2-MD11O3--1
1676 2-MD12A1---
1677 2-MD12A2---
1678 2-MD12G---1
1679 2-MD13A3---
1680 2-MD31B1---
1681 2-MD31D1---
1682 2-ME-1B----
1683 2-ME-1D----
1684 2-ME-1F----
1685 2-MM41A1---
1686 2-MM41A2---
1687 2-MM41A3---
1688 2-MM41B2---
1689 2-MM41B3---
1690 2-MM41C2---
1691 2-MM41C3---
1692 2-MM41D1---
1693 2-MM41D2---
1694 2-MM41D3---
1695 2-MM41D3--1
1696 2-MM41F2---
1697 2-MM41F3---
1698 2-MM41G----
1699 2-MM41J1---
1700 2-MM41J2---
1701 2-MM41J3---
1702 2-MM41K1---
1703 2-MM41K2---
1704 2-MM41K3---
1705 2-MM41L1---
1706 2-MM41M1---
1707 2-MM41M2---
1708 2-MM41M3---
1709 2-MM41O2---
1710 2-MM41O3---
1711 2-MM42G----
1712 2-MO-1A3---
1713 2-MO-1A3--1
1714 2-MO-1D2---
1715 2-ND11A1---
1716 2-ND11A1--1
1717 2-ND11A2---
1718 2-ND11A2--1
1719 2-ND11A3---
1720 2-ND11B1---
1721 2-ND11B2---
1722 2-ND11B3---
1723 2-ND11C1---
1724 2-ND11D1---
1725 2-ND11D2---
1726 2-ND11D2--1
1727 2-ND11D3---
1728 2-ND11F1---
1729 2-ND11F2---
1730 2-ND11F3---
1731 2-ND11G----
1732 2-ND11J1---
1733 2-ND11J2---
1734 2-ND11J2--1
1735 2-ND11J3---
1736 2-ND11J3--1
1737 2-ND11K1---
1738 2-ND11K2---
1739 2-ND11K3---
1740 2-ND11L1---
1741 2-ND11M2---
1742 2-ND11M2--1
1743 2-ND11M3---
1744 2-ND11M3--1
1745 2-ND11O3---
1746 2-ND12A2---
1747 2-ND31D1---
1748 2-ND31D2---
1749 2-ND31O3---
1750 2-NE-1A3---
1751 2-NE-1B----
1752 2-NE-1D----
1753 2-NE-1F----
1754 2-NM11B1---
1755 2-NM41A1---
1756 2-NM41A2---
1757 2-NM41A2--1
1758 2-NM41A3---
1759 2-NM41A3--1
1760 2-NM41B1---
1761 2-NM41B2---
1762 2-NM41B3---
1763 2-NM41B3--1
1764 2-NM41C2---
1765 2-NM41C3---
1766 2-NM41D1---
1767 2-NM41D1--1
1768 2-NM41D2---
1769 2-NM41D2--1
1770 2-NM41D3---
1771 2-NM41D3--1
1772 2-NM41F1---
1773 2-NM41F2---
1774 2-NM41F2--1
1775 2-NM41F3---
1776 2-NM41J1---
1777 2-NM41J1--1
1778 2-NM41J2---
1779 2-NM41J3---
1780 2-NM41J3--1
1781 2-NM41K1--1
1782 2-NM41K2---
1783 2-NM41K2--1
1784 2-NM41K3---
1785 2-NM41K3--1
1786 2-NM41L1--1
1787 2-NM41L2--1
1788 2-NM41L3--1
1789 2-NM41M1--1
1790 2-NM41M2---
1791 2-NM41M3---
1792 2-NM41M3--1
1793 2-NM41O1--1
1794 2-NM41O2---
1795 2-NM41O2--1
1796 2-NM41O3---
1797 2-NM41O3--1
1798 2-NN-1B----
1799 2-NN-1F----
1800 2-NO-1A2---
1801 2-NO-1A3---
1802 2-NO-1B2---
1803 2-NO-1B2-A-
1804 2-NO-1C2---
1805 2-NO-1D2---
1806 2-NO-1D3---
1807 2-NO-1F2---
1808 2-NO-1J2---
1809 2-NO-1J3---
1810 2-NO-1K2---
1811 2-NO-1K3---
1812 2-NO-1M1---
1813 2-NO-1M2---
1814 2-NO-1O1---
1815 3-JA1--4---
1816 3-JA1--5---
1817 3-JA1--6---
1818 3-JA1--6--1
1819 3-JA1--6--2
1820 3-JA1--7---
1821 3-JA1--7--1
1822 3-JA1--8---
1823 3-JA1--9---
1824 3-JA1--9--1
1825 3-JA2--6---
1826 3-JA2--6--2
1827 3-JA2--9---
1828 3-JA2--9--1
1829 3-JA3--4---
1830 3-JA3--4--1
1831 3-JA3--4--2
1832 3-JA3--5---
1833 3-JA3--6---
1834 3-JA3--6--1
1835 3-JA3--6--2
1836 3-JA3--7---
1837 3-JA3--8---
1838 3-JA3--9---
1839 3-JA4--4---
1840 3-JA4--5---
1841 3-JA4--6---
1842 3-JA4--6--1
1843 3-JA4--6--2
1844 3-JA4--7---
1845 3-JA4--8---
1846 3-JA4--9---
1847 3-JA4--9--1
1848 3-JA4--9-A-
1849 3-JA5--6---
1850 3-JA5--6--2
1851 3-JA5--9---
1852 3-JA6--5---
1853 3-JA6--6---
1854 3-JA6--8---
1855 3-JA6--9---
1856 3-JB1--4---
1857 3-JB1--5---
1858 3-JB1--6---
1859 3-JB1--6--1
1860 3-JB1--6--2
1861 3-JB1--7---
1862 3-JB1--8---
1863 3-JB1--9---
1864 3-JB1--9--1
1865 3-JB2--4---
1866 3-JB2--5---
1867 3-JB2--6---
1868 3-JB2--6--1
1869 3-JB2--7---
1870 3-JB2--9---
1871 3-JB4--6---
1872 3-JB4--7---
1873 3-JB4--9---
1874 3-JB5--6---
1875 3-JB5--7---
1876 3-JB5--9---
1877 3-JC1--5---
1878 3-JC1--8---
1879 3-JC3--5---
1880 3-JC3--8---
1881 3-JH1------
1882 3-JH1-----1
1883 3-JH1-----2
1884 3-JH3------
1885 3-JH4------
1886 3-JJ1--4---
1887 3-JJ1--6---
1888 3-JJ1--6--1
1889 3-JJ1--6--2
1890 3-JJ1--7---
1891 3-JJ1--9---
1892 3-JJ1--9--1
1893 3-JJ2--4---
1894 3-JJ2--6---
1895 3-JJ2--9---
1896 3-JJ3--4---
1897 3-JJ3--5---
1898 3-JJ3--6---
1899 3-JJ3--6--1
1900 3-JJ3--7---
1901 3-JJ3--9---
1902 3-JK1--4---
1903 3-JK1--6---
1904 3-JK1--6--1
1905 3-JK1--7---
1906 3-JK1--9---
1907 3-JK2--6---
1908 3-JK2--6--1
1909 3-JK2--6--2
1910 3-JK2--7---
1911 3-JK2--9---
1912 3-JL1--5---
1913 3-JQ1------
1914 3-JQ1-----1
1915 3-KA1--4---
1916 3-KA1--5---
1917 3-KA1--6---
1918 3-KA1--6--1
1919 3-KA1--6--2
1920 3-KA1--7---
1921 3-KA1--7--1
1922 3-KA1--9---
1923 3-KA1--9--1
1924 3-KA2--6---
1925 3-KA2--6--1
1926 3-KA2--9---
1927 3-KA3--6---
1928 3-KA3--7---
1929 3-KA3--7--1
1930 3-KA3--9---
1931 3-KA4--4---
1932 3-KA4--6---
1933 3-KA4--6--1
1934 3-KA4--9---
1935 3-KA5--6---
1936 3-KA6--5---
1937 3-KA6--6---
1938 3-KB1--4---
1939 3-KB1--6---
1940 3-KB1--6--1
1941 3-KB1--6--2
1942 3-KB1--7--1
1943 3-KB1--9---
1944 3-KB1--9--1
1945 3-KB2--6---
1946 3-KB2--7---
1947 3-KB2--9---
1948 3-KB4--6---
1949 3-KB4--7---
1950 3-KB5--6---
1951 3-KC1--8---
1952 3-KH1------
1953 3-KH1-----1
1954 3-KH4------
1955 3-KJ1--6---
1956 3-KJ1--6--1
1957 3-KJ1--7---
1958 3-KJ1--9---
1959 3-KJ1--9--1
1960 3-KJ2--6---
1961 3-KJ2--6--1
1962 3-KJ3--6---
1963 3-KJ3--6--1
1964 3-KJ3--9---
1965 3-KK1--6---
1966 3-KK1--6--1
1967 3-KK1--7---
1968 3-KK1--9---
1969 3-KK1--9--1
1970 3-KK2--6---
1971 3-KK2--6--1
1972 3-KK2--7---
1973 3-KK2--9---
1974 3-KL1--5---
1975 3-KQ1------
1976 3-KQ1-----1
1977 3-LA1--4---
1978 3-LA1--4--1
1979 3-LA1--5---
1980 3-LA1--6---
1981 3-LA1--6--1
1982 3-LA1--6--2
1983 3-LA1--7---
1984 3-LA1--7--1
1985 3-LA1--9---
1986 3-LA1--9--1
1987 3-LA1--9--2
1988 3-LA2--6---
1989 3-LA2--9---
1990 3-LA2--9--1
1991 3-LA3--4---
1992 3-LA3--5---
1993 3-LA3--6---
1994 3-LA3--7---
1995 3-LA3--8---
1996 3-LA3--9---
1997 3-LA4--4---
1998 3-LA4--4--1
1999 3-LA4--5---
2000 3-LA4--6---
2001 3-LA4--6--1
2002 3-LA4--6--2
2003 3-LA4--7---
2004 3-LA4--9---
2005 3-LA4--9--2
2006 3-LA4--9-A-
2007 3-LA5--6---
2008 3-LA6--6---
2009 3-LB1--5---
2010 3-LB1--6---
2011 3-LB1--6--1
2012 3-LB1--6--2
2013 3-LB1--7---
2014 3-LB1--8---
2015 3-LB1--9---
2016 3-LB2--6---
2017 3-LB2--6--1
2018 3-LB2--6--2
2019 3-LB2--7---
2020 3-LB2--9---
2021 3-LB4--6---
2022 3-LB4--6--2
2023 3-LB5--6---
2024 3-LB5--6--2
2025 3-LB5--7---
2026 3-LB5--9---
2027 3-LC1--5---
2028 3-LC1--8---
2029 3-LC1--8--1
2030 3-LH1------
2031 3-LH1-----1
2032 3-LH1-----2
2033 3-LH4------
2034 3-LH4-----1
2035 3-LH4-----2
2036 3-LJ1--6---
2037 3-LJ1--6--1
2038 3-LJ1--6--2
2039 3-LJ1--7---
2040 3-LJ1--9---
2041 3-LJ1--9--1
2042 3-LJ1--9--2
2043 3-LJ2--6---
2044 3-LJ2--6--1
2045 3-LJ2--6--2
2046 3-LJ2--9---
2047 3-LJ3--4---
2048 3-LJ3--5---
2049 3-LJ3--6---
2050 3-LJ3--6--1
2051 3-LJ3--7---
2052 3-LJ3--9---
2053 3-LK1--6---
2054 3-LK1--6--1
2055 3-LK1--6--2
2056 3-LK1--7---
2057 3-LK1--9---
2058 3-LK1--9--1
2059 3-LK1--9--2
2060 3-LK2--6---
2061 3-LK2--6--1
2062 3-LK2--6--2
2063 3-LK2--9---
2064 3-LK2--9--2
2065 3-LQ1------
2066 3-LQ1-----1
2067 3-LQ1-----2
2068 3-MA1--4---
2069 3-MA1--5---
2070 3-MA1--6---
2071 3-MA1--6--1
2072 3-MA1--7---
2073 3-MA1--9---
2074 3-MA1--9--1
2075 3-MA2--6---
2076 3-MA2--9---
2077 3-MA3--4---
2078 3-MA3--5---
2079 3-MA3--6---
2080 3-MA3--7---
2081 3-MA4--4--2
2082 3-MA4--5---
2083 3-MA4--6---
2084 3-MA4--6--1
2085 3-MA4--7---
2086 3-MA4--9---
2087 3-MA5--9---
2088 3-MB1--6---
2089 3-MB1--6--1
2090 3-MB1--7---
2091 3-MB1--9---
2092 3-MB2--6---
2093 3-MB2--9---
2094 3-MB4--6---
2095 3-MB5--6--1
2096 3-MB5--7---
2097 3-MC1--5---
2098 3-MC1--8---
2099 3-MH1------
2100 3-MH1-----1
2101 3-MH4------
2102 3-MH4-----1
2103 3-MJ1--6---
2104 3-MJ1--6--1
2105 3-MJ1--7---
2106 3-MJ1--9---
2107 3-MJ1--9--1
2108 3-MJ2--6---
2109 3-MJ3--6---
2110 3-MJ3--9---
2111 3-MK1--6---
2112 3-MK1--6--1
2113 3-MK1--9---
2114 3-MK2--6---
2115 3-MK2--7---
2116 3-MK2--9---
2117 3-MQ1------
2118 3-MQ1-----1
2119 3-NA1--4---
2120 3-NA1--5---
2121 3-NA1--5--1
2122 3-NA1--6---
2123 3-NA1--6--1
2124 3-NA1--6Q--
2125 3-NA1--7---
2126 3-NA1--7--1
2127 3-NA1--8---
2128 3-NA1--9---
2129 3-NA1--9--1
2130 3-NA2--6---
2131 3-NA2--6--1
2132 3-NA2--9---
2133 3-NA3--4---
2134 3-NA3--5---
2135 3-NA3--6---
2136 3-NA3--7---
2137 3-NA3--9---
2138 3-NA4--4---
2139 3-NA4--5---
2140 3-NA4--6---
2141 3-NA4--6--1
2142 3-NA4--6--2
2143 3-NA4--7---
2144 3-NA4--8---
2145 3-NA4--9---
2146 3-NA5--6---
2147 3-NA5--9---
2148 3-NA6--6---
2149 3-NA6--8---
2150 3-NA6--9---
2151 3-NB1--4---
2152 3-NB1--5---
2153 3-NB1--6---
2154 3-NB1--6--1
2155 3-NB1--6--2
2156 3-NB1--7---
2157 3-NB1--9---
2158 3-NB2--5---
2159 3-NB2--6---
2160 3-NB2--6Q--
2161 3-NB2--7---
2162 3-NB2--9---
2163 3-NB4--6---
2164 3-NB4--7---
2165 3-NB4--9---
2166 3-NB5--6---
2167 3-NB5--9---
2168 3-NC1--8---
2169 3-NC3--5---
2170 3-NC3--8---
2171 3-NH1------
2172 3-NH1-----1
2173 3-NH3------
2174 3-NH4------
2175 3-NJ1--6---
2176 3-NJ1--7---
2177 3-NJ1--9---
2178 3-NJ2--6---
2179 3-NJ2--9---
2180 3-NJ3--6---
2181 3-NJ3--9---
2182 3-NK1--6---
2183 3-NK1--7---
2184 3-NK1--9---
2185 3-NK2--6---
2186 3-NK2--9---
2187 3-NQ1------
2188 38NH1---Z--
2189 4-O--------
2190 4-O-------1
2191 4-O-------2
2192 4-O------A-
2193 4-O-----H--
2194 4-O-----Q--
2195 4-S--------
2196 4-S-------1
2197 4-S-------2
2198 4-S-----H--
2199 48O-----Z--
2200 5----------
2201 5---------1
2202 5------1---
2203 5------2---
2204 5-G--------
2205 5-G-------1
2206 5-G-------3
2207 5-G----7---
2208 end_of_list
2209 ;
2210 my @list = split(/\r?\n/, $list);
2211 return \@list;
2212 }
2213  
2214  
2215  
2216 1;
2217  
2218 __END__
2219  
2220 =pod
2221  
2222 =encoding UTF-8
2223  
2224 =head1 NAME
2225  
2226 Lingua::Interset::Tagset::LA::It - Driver for the positional tagset of the Index Thomisticus Treebank.
2227  
2228 =head1 VERSION
2229  
2230 version 3.015
2231  
2232 =head1 SYNOPSIS
2233  
2234 use Lingua::Interset::Tagset::LA::Itconll;
2235 my $driver = Lingua::Interset::Tagset::LA::Itconll->new();
2236 my $fs = $driver->decode("1\tA1\tgrn1|casA|gen1");
2237  
2238 or
2239  
2240 use Lingua::Interset qw(decode);
2241 my $fs = decode('la::itconll', "1\tA1\tgrn1|casA|gen1");
2242  
2243 =head1 DESCRIPTION
2244  
2245 Interset driver for the tagset of the Index Thomisticus Treebank in CoNLL format.
2246 The original tags are positional, there are eleven positions.
2247 CoNLL tagsets in Interset are traditionally three values separated by tabs.
2248 The values come from the CoNLL columns CPOS, POS and FEAT.
2249  
2250 =head1 SEE ALSO
2251  
2252 L<Lingua::Interset>,
2253 L<Lingua::Interset::Tagset>,
2254 L<Lingua::Interset::Tagset::Conll>,
2255 L<Lingua::Interset::FeatureStructure>
2256  
2257 =head1 AUTHOR
2258  
2259 Dan Zeman <zeman@ufal.mff.cuni.cz>
2260  
2261 =head1 COPYRIGHT AND LICENSE
2262  
2263 This software is copyright (c) 2019 by Univerzita Karlova (Charles University).
2264  
2265 This is free software; you can redistribute it and/or modify it under
2266 the same terms as the Perl 5 programming language system itself.
2267  
2268 =cut