Interset/Tagset/CS/Pmkkr.pm untested

filter: Statementstmt 0.0% 0 / 80 Branchbran 0.0% 0 / 16 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 111 CC 9 SCAR 38.8
CC
9
Cov
0%
encode
90.0
_create_feature_map
2.0
list
2.0
CRAP 48.6
1 # ABSTRACT: Driver for the shortened Czech tagset of the Prague Spoken Corpus (Pražský mluvený korpus).
2 # Copyright © 2009, 2010, 2014, 2017 Dan Zeman <zeman@ufal.mff.cuni.cz>
3  
4 package Lingua::Interset::Tagset::CS::Pmkkr;
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::CS::Pmk';
14  
15  
16  
17 #------------------------------------------------------------------------------
18 # Creates a map that tells for each surface part of speech which features are
19 # relevant and in what order they appear.
20 #------------------------------------------------------------------------------
21 sub _create_feature_map
22 {
23 my $self = shift;
24 my %features =
25 (
26 # Unlike in the long tags, the short tags in the corpus really annotate style.
27 # substantivum = noun
28 # 2! druh 3. třída 4. valence 5! rod 6. číslo 7. pád 8. funkce 9! styl
29 '1' => ['pos', 'noun_type', 'gender', 'style'],
30 # adjektivum = adjective
31 # 2! druh 3! poddruh 4. třída 5. valence 6. rod 7. číslo 8. pád 9. stupeň 10. funkce 11! styl
32 '2' => ['pos', 'adjective_type', 'adjective_subtype', 'style'],
33 # zájmeno = pronoun
34 # 2! druh 3. valence 4. rod 5. číslo 6. pád 7. funkce 8. styl
35 '3' => ['pos', 'pronoun_type', undef, 'style'],
36 # číslovka = numeral
37 # 2! druh 3. valence 4. rod 5. číslo 6. pád 7. pád subst./pron. 8. funkce 9. styl
38 '4' => ['pos', 'numeral_type', undef, 'style'],
39 # sloveso = verb
40 # 2. vid 3. valence subjektová 4. valence 5. osoba/číslo 6. způsob/čas/slovesný rod 7. imper./neurč. tvary 8! víceslovnost a rezultativnost 9. jmenný rod 10! zápor 11! styl
41 '5' => ['pos', 'multiwordness_and_resultativity', 'polarity', 'style'],
42 # adverbium = adverb
43 # 2! druh 3. třída 4. valence/funkce 5. stupeň 6! styl
44 '6' => ['pos', 'adverb_type', undef, 'style'],
45 # předložka = preposition
46 # 2! druh 3. třída 4. valenční pád 5. funkční závislost levá 6! styl
47 '7' => ['pos', 'preposition_type', undef, 'style'],
48 # spojka = conjunction
49 # 2! druh 3. třída 4. valence 5! styl
50 '8' => ['pos', 'conjunction_type', undef, 'style'],
51 # citoslovce = interjection
52 # 2! druh 3. třída 4! styl
53 '9' => ['pos', 'interjection_type', undef, 'style'],
54 # částice = particle
55 # 2! druh 3. třída 4. valence 5. modus věty 6! styl
56 '0' => ['pos', 'particle_type', undef, 'style'],
57 # idiom a frazém = idiom and set phrase
58 # 2! druh; other positions are not defined for F6: 3. valence substantivní 4. valence
59 'F1' => ['pos', 'idiom_type', undef, 'style'],
60 'F2' => ['pos', 'idiom_type', undef, 'style'],
61 'F3' => ['pos', 'idiom_type', undef, 'style'],
62 'F4' => ['pos', 'idiom_type', undef, 'style'],
63 'F5' => ['pos', 'idiom_type', undef, 'style'],
64 'F6' => ['pos', 'idiom_type', undef, 'style'],
65 # jiné = other (real type encoded at second position: CZP)
66 # 2! skutečný druh: CZP 7! styl
67 # pouze pro P: P3. druh P4. rod P5. číslo P6. pád
68 'JC' => ['pos', 'other_real_type', undef, 'style'],
69 'JZ' => ['pos', 'other_real_type', undef, 'style'],
70 'JP' => ['pos', 'other_real_type', 'proper_noun_type', 'style']
71 );
72 return \%features;
73 }
74  
75  
76  
77 #------------------------------------------------------------------------------
78 # Takes feature structure and returns the corresponding physical tag (string).
79 #------------------------------------------------------------------------------
80 sub encode
81 {
82 my $self = shift;
83 my $fs = shift; # Lingua::Interset::FeatureStructure
84 my $atoms = $self->atoms();
85 my $features = $self->feature_map();
86 my $pos = $atoms->{pos}->encode($fs);
87 if($pos eq 'J')
88 {
89 $pos .= $atoms->{other_real_type}->encode($fs);
90 }
91 elsif($pos eq 'F')
92 {
93 $pos .= $atoms->{idiom_type}->encode($fs);
94 }
95 my @values;
96 if(exists($features->{$pos}))
97 {
98 my @features = @{$features->{$pos}};
99 for(my $i = 0; $i<=$#features; $i++)
100 {
101 next if(!defined($features[$i]));
102 confess("Unknown atom '$features[$i]'") if(!exists($atoms->{$features[$i]}));
103 $values[$i] = $atoms->{$features[$i]}->encode($fs);
104 if($features[$i] eq 'gender')
105 {
106 $values[$i] = Lingua::Interset::Tagset::CS::Pmk::_internal_to_surface_gender($pos, $values[$i]);
107 }
108 }
109 }
110 my $tag;
111 # Convert the array of values to a tag in the XML format.
112 # If $values[0] is empty, then all are empty.
113 # untagged tokens in multi-word expressions have empty tags like this:
114 # <i1></i1><i2></i2><i3></i3><i4></i4><i5></i5><i6></i6><i7></i7><i8></i8><i9></i9><i10></i10><i11></i11>
115 if(!defined($values[0]) || $values[0] eq '')
116 {
117 $tag = '<i1></i1><i2></i2><i3></i3><i4></i4>';
118 }
119 else
120 {
121 for(my $i = 0; $i<4; $i++)
122 {
123 my $iplus = $i+1;
124 my $value = $values[$i];
125 $value = '_' if(!defined($value));
126 # In the corpus, undefined feature values are encoded either as empty strings (<i10></i10>) or using underscores (<i10>_</i10>).
127 # The choice is arbitrary and there is no meaningful difference between the two ways.
128 # We do not attempt to reconstruct the tags in the corpus. Instead, our list of permitted tags always prefers the empty strings.
129 $tag .= "<i$iplus>$value</i$iplus>";
130 }
131 }
132 return $tag;
133 }
134  
135  
136  
137 #------------------------------------------------------------------------------
138 # Returns reference to list of known tags.
139 # 236 (pmk_kr.xml)
140 # after cleaning: 212
141 # after addition of missing other-resistant tags: 244
142 #------------------------------------------------------------------------------
143 sub list
144 {
145 my $self = shift;
146 my $list = <<end_of_list
147 <i1>0</i1><i2>1</i2><i3>_</i3><i4>1</i4>
148 <i1>0</i1><i2>1</i2><i3>_</i3><i4>2</i4>
149 <i1>0</i1><i2>1</i2><i3>_</i3><i4>3</i4>
150 <i1>0</i1><i2>2</i2><i3>_</i3><i4>1</i4>
151 <i1>0</i1><i2>2</i2><i3>_</i3><i4>2</i4>
152 <i1>0</i1><i2>2</i2><i3>_</i3><i4>3</i4>
153 <i1>0</i1><i2>3</i2><i3>_</i3><i4>1</i4>
154 <i1>0</i1><i2>3</i2><i3>_</i3><i4>2</i4>
155 <i1>0</i1><i2>4</i2><i3>_</i3><i4>1</i4>
156 <i1>0</i1><i2>4</i2><i3>_</i3><i4>2</i4>
157 <i1>0</i1><i2>4</i2><i3>_</i3><i4>3</i4>
158 <i1>0</i1><i2>5</i2><i3>_</i3><i4>1</i4>
159 <i1>0</i1><i2>5</i2><i3>_</i3><i4>2</i4>
160 <i1>1</i1><i2>1</i2><i3>1</i3><i4>1</i4>
161 <i1>1</i1><i2>1</i2><i3>1</i3><i4>2</i4>
162 <i1>1</i1><i2>1</i2><i3>1</i3><i4>4</i4>
163 <i1>1</i1><i2>1</i2><i3>2</i3><i4>1</i4>
164 <i1>1</i1><i2>1</i2><i3>2</i3><i4>2</i4>
165 <i1>1</i1><i2>1</i2><i3>2</i3><i4>4</i4>
166 <i1>1</i1><i2>1</i2><i3>3</i3><i4>1</i4>
167 <i1>1</i1><i2>1</i2><i3>3</i3><i4>2</i4>
168 <i1>1</i1><i2>1</i2><i3>3</i3><i4>4</i4>
169 <i1>1</i1><i2>1</i2><i3>4</i3><i4>1</i4>
170 <i1>1</i1><i2>1</i2><i3>4</i3><i4>2</i4>
171 <i1>1</i1><i2>1</i2><i3>4</i3><i4>4</i4>
172 <i1>1</i1><i2>1</i2><i3>9</i3><i4>2</i4>
173 <i1>1</i1><i2>2</i2><i3>1</i3><i4>1</i4>
174 <i1>1</i1><i2>2</i2><i3>1</i3><i4>2</i4>
175 <i1>1</i1><i2>2</i2><i3>2</i3><i4>1</i4>
176 <i1>1</i1><i2>2</i2><i3>2</i3><i4>2</i4>
177 <i1>1</i1><i2>2</i2><i3>3</i3><i4>1</i4>
178 <i1>1</i1><i2>2</i2><i3>3</i3><i4>2</i4>
179 <i1>1</i1><i2>2</i2><i3>4</i3><i4>1</i4>
180 <i1>1</i1><i2>2</i2><i3>4</i3><i4>2</i4>
181 <i1>1</i1><i2>2</i2><i3>9</i3><i4>2</i4>
182 <i1>1</i1><i2>3</i2><i3>1</i3><i4>1</i4>
183 <i1>1</i1><i2>3</i2><i3>1</i3><i4>2</i4>
184 <i1>1</i1><i2>3</i2><i3>3</i3><i4>2</i4>
185 <i1>1</i1><i2>4</i2><i3>1</i3><i4>1</i4>
186 <i1>1</i1><i2>4</i2><i3>1</i3><i4>2</i4>
187 <i1>1</i1><i2>4</i2><i3>2</i3><i4>1</i4>
188 <i1>1</i1><i2>4</i2><i3>2</i3><i4>2</i4>
189 <i1>1</i1><i2>4</i2><i3>3</i3><i4>1</i4>
190 <i1>1</i1><i2>4</i2><i3>3</i3><i4>2</i4>
191 <i1>1</i1><i2>4</i2><i3>4</i3><i4>1</i4>
192 <i1>1</i1><i2>4</i2><i3>4</i3><i4>2</i4>
193 <i1>1</i1><i2>5</i2><i3>2</i3><i4>1</i4>
194 <i1>1</i1><i2>5</i2><i3>2</i3><i4>2</i4>
195 <i1>1</i1><i2>5</i2><i3>3</i3><i4>2</i4>
196 <i1>1</i1><i2>5</i2><i3>4</i3><i4>1</i4>
197 <i1>1</i1><i2>5</i2><i3>4</i3><i4>2</i4>
198 <i1>1</i1><i2>6</i2><i3>4</i3><i4>1</i4>
199 <i1>1</i1><i2>6</i2><i3>4</i3><i4>2</i4>
200 <i1>1</i1><i2>7</i2><i3>1</i3><i4>1</i4>
201 <i1>1</i1><i2>7</i2><i3>1</i3><i4>2</i4>
202 <i1>1</i1><i2>7</i2><i3>2</i3><i4>1</i4>
203 <i1>1</i1><i2>7</i2><i3>2</i3><i4>2</i4>
204 <i1>1</i1><i2>7</i2><i3>3</i3><i4>1</i4>
205 <i1>1</i1><i2>7</i2><i3>3</i3><i4>2</i4>
206 <i1>1</i1><i2>7</i2><i3>4</i3><i4>1</i4>
207 <i1>1</i1><i2>7</i2><i3>4</i3><i4>2</i4>
208 <i1>1</i1><i2>9</i2><i3>2</i3><i4>1</i4>
209 <i1>1</i1><i2>9</i2><i3>2</i3><i4>2</i4>
210 <i1>1</i1><i2>9</i2><i3>3</i3><i4>1</i4>
211 <i1>1</i1><i2>9</i2><i3>3</i3><i4>2</i4>
212 <i1>1</i1><i2>9</i2><i3>4</i3><i4>1</i4>
213 <i1>1</i1><i2>9</i2><i3>4</i3><i4>2</i4>
214 <i1>2</i1><i2>1</i2><i3>0</i3><i4>1</i4>
215 <i1>2</i1><i2>1</i2><i3>0</i3><i4>2</i4>
216 <i1>2</i1><i2>1</i2><i3>0</i3><i4>3</i4>
217 <i1>2</i1><i2>1</i2><i3>1</i3><i4>1</i4>
218 <i1>2</i1><i2>1</i2><i3>1</i3><i4>2</i4>
219 <i1>2</i1><i2>1</i2><i3>1</i3><i4>4</i4>
220 <i1>2</i1><i2>1</i2><i3>2</i3><i4>1</i4>
221 <i1>2</i1><i2>1</i2><i3>2</i3><i4>2</i4>
222 <i1>2</i1><i2>1</i2><i3>3</i3><i4>1</i4>
223 <i1>2</i1><i2>1</i2><i3>3</i3><i4>2</i4>
224 <i1>2</i1><i2>1</i2><i3>4</i3><i4>1</i4>
225 <i1>2</i1><i2>1</i2><i3>4</i3><i4>2</i4>
226 <i1>2</i1><i2>1</i2><i3>4</i3><i4>3</i4>
227 <i1>2</i1><i2>1</i2><i3>5</i3><i4>2</i4>
228 <i1>2</i1><i2>2</i2><i3>1</i3><i4>1</i4>
229 <i1>2</i1><i2>2</i2><i3>1</i3><i4>2</i4>
230 <i1>2</i1><i2>2</i2><i3>1</i3><i4>4</i4>
231 <i1>2</i1><i2>2</i2><i3>2</i3><i4>1</i4>
232 <i1>2</i1><i2>2</i2><i3>2</i3><i4>2</i4>
233 <i1>2</i1><i2>2</i2><i3>3</i3><i4>2</i4>
234 <i1>2</i1><i2>2</i2><i3>4</i3><i4>1</i4>
235 <i1>2</i1><i2>2</i2><i3>4</i3><i4>2</i4>
236 <i1>2</i1><i2>2</i2><i3>4</i3><i4>3</i4>
237 <i1>2</i1><i2>2</i2><i3>5</i3><i4>2</i4>
238 <i1>2</i1><i2>3</i2><i3>0</i3><i4>1</i4>
239 <i1>2</i1><i2>3</i2><i3>0</i3><i4>2</i4>
240 <i1>2</i1><i2>3</i2><i3>3</i3><i4>1</i4>
241 <i1>2</i1><i2>3</i2><i3>3</i3><i4>2</i4>
242 <i1>2</i1><i2>3</i2><i3>4</i3><i4>1</i4>
243 <i1>2</i1><i2>3</i2><i3>4</i3><i4>2</i4>
244 <i1>3</i1><i2>-</i2><i3>_</i3><i4>1</i4>
245 <i1>3</i1><i2>-</i2><i3>_</i3><i4>2</i4>
246 <i1>3</i1><i2>0</i2><i3>_</i3><i4>1</i4>
247 <i1>3</i1><i2>0</i2><i3>_</i3><i4>2</i4>
248 <i1>3</i1><i2>1</i2><i3>_</i3><i4>1</i4>
249 <i1>3</i1><i2>1</i2><i3>_</i3><i4>2</i4>
250 <i1>3</i1><i2>2</i2><i3>_</i3><i4>1</i4>
251 <i1>3</i1><i2>2</i2><i3>_</i3><i4>2</i4>
252 <i1>3</i1><i2>2</i2><i3>_</i3><i4>3</i4>
253 <i1>3</i1><i2>3</i2><i3>_</i3><i4>1</i4>
254 <i1>3</i1><i2>3</i2><i3>_</i3><i4>2</i4>
255 <i1>3</i1><i2>4</i2><i3>_</i3><i4>1</i4>
256 <i1>3</i1><i2>4</i2><i3>_</i3><i4>2</i4>
257 <i1>3</i1><i2>5</i2><i3>_</i3><i4>1</i4>
258 <i1>3</i1><i2>5</i2><i3>_</i3><i4>2</i4>
259 <i1>3</i1><i2>6</i2><i3>_</i3><i4>1</i4>
260 <i1>3</i1><i2>6</i2><i3>_</i3><i4>2</i4>
261 <i1>3</i1><i2>7</i2><i3>_</i3><i4>1</i4>
262 <i1>3</i1><i2>7</i2><i3>_</i3><i4>2</i4>
263 <i1>3</i1><i2>8</i2><i3>_</i3><i4>1</i4>
264 <i1>3</i1><i2>8</i2><i3>_</i3><i4>2</i4>
265 <i1>3</i1><i2>9</i2><i3>_</i3><i4>1</i4>
266 <i1>3</i1><i2>9</i2><i3>_</i3><i4>2</i4>
267 <i1>4</i1><i2>0</i2><i3>_</i3><i4>1</i4>
268 <i1>4</i1><i2>0</i2><i3>_</i3><i4>2</i4>
269 <i1>4</i1><i2>1</i2><i3>_</i3><i4>1</i4>
270 <i1>4</i1><i2>1</i2><i3>_</i3><i4>2</i4>
271 <i1>4</i1><i2>2</i2><i3>_</i3><i4>1</i4>
272 <i1>4</i1><i2>2</i2><i3>_</i3><i4>2</i4>
273 <i1>4</i1><i2>3</i2><i3>_</i3><i4>1</i4>
274 <i1>4</i1><i2>3</i2><i3>_</i3><i4>2</i4>
275 <i1>4</i1><i2>4</i2><i3>_</i3><i4>1</i4>
276 <i1>4</i1><i2>4</i2><i3>_</i3><i4>2</i4>
277 <i1>4</i1><i2>5</i2><i3>_</i3><i4>1</i4>
278 <i1>4</i1><i2>5</i2><i3>_</i3><i4>2</i4>
279 <i1>4</i1><i2>6</i2><i3>_</i3><i4>1</i4>
280 <i1>4</i1><i2>6</i2><i3>_</i3><i4>2</i4>
281 <i1>4</i1><i2>7</i2><i3>_</i3><i4>1</i4>
282 <i1>4</i1><i2>7</i2><i3>_</i3><i4>2</i4>
283 <i1>5</i1><i2>1</i2><i3>1</i3><i4>1</i4>
284 <i1>5</i1><i2>1</i2><i3>1</i3><i4>2</i4>
285 <i1>5</i1><i2>1</i2><i3>1</i3><i4>3</i4>
286 <i1>5</i1><i2>1</i2><i3>1</i3><i4>4</i4>
287 <i1>5</i1><i2>1</i2><i3>2</i3><i4>1</i4>
288 <i1>5</i1><i2>1</i2><i3>2</i3><i4>2</i4>
289 <i1>5</i1><i2>1</i2><i3>2</i3><i4>3</i4>
290 <i1>5</i1><i2>1</i2><i3>2</i3><i4>4</i4>
291 <i1>5</i1><i2>2</i2><i3>1</i3><i4>1</i4>
292 <i1>5</i1><i2>2</i2><i3>1</i3><i4>2</i4>
293 <i1>5</i1><i2>2</i2><i3>1</i3><i4>3</i4>
294 <i1>5</i1><i2>2</i2><i3>1</i3><i4>4</i4>
295 <i1>5</i1><i2>2</i2><i3>2</i3><i4>1</i4>
296 <i1>5</i1><i2>2</i2><i3>2</i3><i4>2</i4>
297 <i1>5</i1><i2>2</i2><i3>2</i3><i4>3</i4>
298 <i1>5</i1><i2>3</i2><i3>1</i3><i4>1</i4>
299 <i1>5</i1><i2>3</i2><i3>1</i3><i4>2</i4>
300 <i1>5</i1><i2>3</i2><i3>1</i3><i4>3</i4>
301 <i1>5</i1><i2>3</i2><i3>1</i3><i4>4</i4>
302 <i1>5</i1><i2>3</i2><i3>2</i3><i4>1</i4>
303 <i1>5</i1><i2>3</i2><i3>2</i3><i4>2</i4>
304 <i1>5</i1><i2>4</i2><i3>1</i3><i4>1</i4>
305 <i1>5</i1><i2>4</i2><i3>1</i3><i4>2</i4>
306 <i1>5</i1><i2>4</i2><i3>2</i3><i4>1</i4>
307 <i1>5</i1><i2>4</i2><i3>2</i3><i4>2</i4>
308 <i1>5</i1><i2>5</i2><i3>1</i3><i4>1</i4>
309 <i1>5</i1><i2>5</i2><i3>1</i3><i4>2</i4>
310 <i1>5</i1><i2>5</i2><i3>2</i3><i4>1</i4>
311 <i1>5</i1><i2>5</i2><i3>2</i3><i4>2</i4>
312 <i1>5</i1><i2>6</i2><i3>1</i3><i4>1</i4>
313 <i1>5</i1><i2>6</i2><i3>1</i3><i4>2</i4>
314 <i1>5</i1><i2>7</i2><i3>1</i3><i4>1</i4>
315 <i1>5</i1><i2>7</i2><i3>1</i3><i4>2</i4>
316 <i1>5</i1><i2>8</i2><i3>1</i3><i4>2</i4>
317 <i1>5</i1><i2>9</i2><i3>1</i3><i4>2</i4>
318 <i1>6</i1><i2>1</i2><i3>_</i3><i4>1</i4>
319 <i1>6</i1><i2>1</i2><i3>_</i3><i4>2</i4>
320 <i1>6</i1><i2>1</i2><i3>_</i3><i4>3</i4>
321 <i1>6</i1><i2>2</i2><i3>_</i3><i4>1</i4>
322 <i1>6</i1><i2>2</i2><i3>_</i3><i4>2</i4>
323 <i1>6</i1><i2>3</i2><i3>_</i3><i4>1</i4>
324 <i1>6</i1><i2>3</i2><i3>_</i3><i4>2</i4>
325 <i1>6</i1><i2>4</i2><i3>_</i3><i4>1</i4>
326 <i1>6</i1><i2>4</i2><i3>_</i3><i4>2</i4>
327 <i1>6</i1><i2>4</i2><i3>_</i3><i4>3</i4>
328 <i1>6</i1><i2>5</i2><i3>_</i3><i4>1</i4>
329 <i1>6</i1><i2>5</i2><i3>_</i3><i4>2</i4>
330 <i1>7</i1><i2>1</i2><i3>_</i3><i4>1</i4>
331 <i1>7</i1><i2>1</i2><i3>_</i3><i4>2</i4>
332 <i1>7</i1><i2>2</i2><i3>_</i3><i4>1</i4>
333 <i1>7</i1><i2>2</i2><i3>_</i3><i4>2</i4>
334 <i1>7</i1><i2>3</i2><i3>_</i3><i4>1</i4>
335 <i1>7</i1><i2>3</i2><i3>_</i3><i4>2</i4>
336 <i1>8</i1><i2>1</i2><i3>_</i3><i4>1</i4>
337 <i1>8</i1><i2>1</i2><i3>_</i3><i4>2</i4>
338 <i1>8</i1><i2>1</i2><i3>_</i3><i4>3</i4>
339 <i1>8</i1><i2>2</i2><i3>_</i3><i4>1</i4>
340 <i1>8</i1><i2>2</i2><i3>_</i3><i4>2</i4>
341 <i1>8</i1><i2>2</i2><i3>_</i3><i4>3</i4>
342 <i1>8</i1><i2>3</i2><i3>_</i3><i4>1</i4>
343 <i1>8</i1><i2>3</i2><i3>_</i3><i4>2</i4>
344 <i1>8</i1><i2>3</i2><i3>_</i3><i4>3</i4>
345 <i1>8</i1><i2>4</i2><i3>_</i3><i4>1</i4>
346 <i1>8</i1><i2>4</i2><i3>_</i3><i4>2</i4>
347 <i1>8</i1><i2>9</i2><i3>_</i3><i4>1</i4>
348 <i1>8</i1><i2>9</i2><i3>_</i3><i4>2</i4>
349 <i1>9</i1><i2>1</i2><i3>_</i3><i4>1</i4>
350 <i1>9</i1><i2>1</i2><i3>_</i3><i4>2</i4>
351 <i1>9</i1><i2>2</i2><i3>_</i3><i4>1</i4>
352 <i1>9</i1><i2>2</i2><i3>_</i3><i4>2</i4>
353 <i1>9</i1><i2>3</i2><i3>_</i3><i4>1</i4>
354 <i1>9</i1><i2>3</i2><i3>_</i3><i4>2</i4>
355 <i1>9</i1><i2>4</i2><i3>_</i3><i4>1</i4>
356 <i1>9</i1><i2>4</i2><i3>_</i3><i4>2</i4>
357 <i1>9</i1><i2>5</i2><i3>_</i3><i4>1</i4>
358 <i1>9</i1><i2>5</i2><i3>_</i3><i4>2</i4>
359 <i1>9</i1><i2>6</i2><i3>_</i3><i4>1</i4>
360 <i1>9</i1><i2>6</i2><i3>_</i3><i4>2</i4>
361 <i1>9</i1><i2>7</i2><i3>_</i3><i4>1</i4>
362 <i1>9</i1><i2>7</i2><i3>_</i3><i4>2</i4>
363 <i1></i1><i2></i2><i3></i3><i4></i4>
364 <i1>F</i1><i2>1</i2><i3>_</i3><i4>1</i4>
365 <i1>F</i1><i2>1</i2><i3>_</i3><i4>2</i4>
366 <i1>F</i1><i2>1</i2><i3>_</i3><i4>4</i4>
367 <i1>F</i1><i2>2</i2><i3>_</i3><i4>1</i4>
368 <i1>F</i1><i2>2</i2><i3>_</i3><i4>2</i4>
369 <i1>F</i1><i2>2</i2><i3>_</i3><i4>4</i4>
370 <i1>F</i1><i2>3</i2><i3>_</i3><i4>1</i4>
371 <i1>F</i1><i2>3</i2><i3>_</i3><i4>2</i4>
372 <i1>F</i1><i2>3</i2><i3>_</i3><i4>3</i4>
373 <i1>F</i1><i2>4</i2><i3>_</i3><i4>1</i4>
374 <i1>F</i1><i2>4</i2><i3>_</i3><i4>2</i4>
375 <i1>F</i1><i2>5</i2><i3>_</i3><i4>1</i4>
376 <i1>F</i1><i2>5</i2><i3>_</i3><i4>2</i4>
377 <i1>F</i1><i2>5</i2><i3>_</i3><i4>3</i4>
378 <i1>F</i1><i2>5</i2><i3>_</i3><i4>4</i4>
379 <i1>F</i1><i2>6</i2><i3>_</i3><i4>1</i4>
380 <i1>F</i1><i2>6</i2><i3>_</i3><i4>2</i4>
381 <i1>F</i1><i2>6</i2><i3>_</i3><i4>4</i4>
382 <i1>J</i1><i2>C</i2><i3>_</i3><i4>1</i4>
383 <i1>J</i1><i2>C</i2><i3>_</i3><i4>2</i4>
384 <i1>J</i1><i2>C</i2><i3>_</i3><i4>4</i4>
385 <i1>J</i1><i2>P</i2><i3>1</i3><i4>1</i4>
386 <i1>J</i1><i2>P</i2><i3>1</i3><i4>2</i4>
387 <i1>J</i1><i2>P</i2><i3>2</i3><i4>1</i4>
388 <i1>J</i1><i2>P</i2><i3>2</i3><i4>2</i4>
389 <i1>J</i1><i2>Z</i2><i3>_</i3><i4>1</i4>
390 <i1>J</i1><i2>Z</i2><i3>_</i3><i4>2</i4>
391 end_of_list
392 ;
393 my @list = split(/\r?\n/, $list);
394 return \@list;
395 }
396  
397  
398  
399 1;
400  
401 __END__
402  
403 =pod
404  
405 =encoding UTF-8
406  
407 =head1 NAME
408  
409 Lingua::Interset::Tagset::CS::Pmkkr - Driver for the shortened Czech tagset of the Prague Spoken Corpus (Pražský mluvený korpus).
410  
411 =head1 VERSION
412  
413 version 3.015
414  
415 =head1 SYNOPSIS
416  
417 use Lingua::Interset::Tagset::CS::Pmk;
418 my $driver = Lingua::Interset::Tagset::CS::Pmk->new();
419 my $fs = $driver->decode('<i1>1</i1><i2>1</i2><i3>1</i3><i4>0</i4><i5>1</i5><i6>1</i6><i7>1</i7><i8>1</i8><i9>_</i9><i10>_</i10><i11></i11>');
420  
421 or
422  
423 use Lingua::Interset qw(decode);
424 my $fs = decode('cs::pmk', '<i1>1</i1><i2>1</i2><i3>1</i3><i4>0</i4><i5>1</i5><i6>1</i6><i7>1</i7><i8>1</i8><i9>_</i9><i10>_</i10><i11></i11>');
425  
426 =head1 DESCRIPTION
427  
428 Interset driver for the long tags of the Prague Spoken Corpus (Pražský mluvený korpus, PMK).
429  
430 =head1 SEE ALSO
431  
432 L<Lingua::Interset>,
433 L<Lingua::Interset::Tagset>,
434 L<Lingua::Interset::Tagset::CS::Pmkkr>,
435 L<Lingua::Interset::FeatureStructure>
436  
437 =head1 AUTHOR
438  
439 Dan Zeman <zeman@ufal.mff.cuni.cz>
440  
441 =head1 COPYRIGHT AND LICENSE
442  
443 This software is copyright (c) 2019 by Univerzita Karlova (Charles University).
444  
445 This is free software; you can redistribute it and/or modify it under
446 the same terms as the Perl 5 programming language system itself.
447  
448 =cut