line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# This file was automatically generated by SWIG (https://www.swig.org). |
2
|
|
|
|
|
|
|
# Version 4.1.1 |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Do not make changes to this file unless you know what you are doing - modify |
5
|
|
|
|
|
|
|
# the SWIG interface file instead. |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Ufal::UDPipe; |
8
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
9
|
2
|
|
|
2
|
|
72920
|
use base qw(Exporter); |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
364
|
|
10
|
2
|
|
|
2
|
|
16
|
use base qw(DynaLoader); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
906
|
|
11
|
|
|
|
|
|
|
package Ufal::UDPipec; |
12
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
13
|
|
|
|
|
|
|
bootstrap Ufal::UDPipe; |
14
|
|
|
|
|
|
|
package Ufal::UDPipe; |
15
|
|
|
|
|
|
|
@EXPORT = qw(); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# ---------- BASE METHODS ------------- |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
package Ufal::UDPipe; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub TIEHASH { |
22
|
0
|
|
|
0
|
|
0
|
my ($classname,$obj) = @_; |
23
|
0
|
|
|
|
|
0
|
return bless $obj, $classname; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
0
|
|
|
sub CLEAR { } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
0
|
|
|
sub FIRSTKEY { } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
0
|
|
|
sub NEXTKEY { } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub FETCH { |
33
|
0
|
|
|
0
|
|
0
|
my ($self,$field) = @_; |
34
|
0
|
|
|
|
|
0
|
my $member_func = "swig_${field}_get"; |
35
|
0
|
|
|
|
|
0
|
$self->$member_func(); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub STORE { |
39
|
0
|
|
|
0
|
|
0
|
my ($self,$field,$newval) = @_; |
40
|
0
|
|
|
|
|
0
|
my $member_func = "swig_${field}_set"; |
41
|
0
|
|
|
|
|
0
|
$self->$member_func($newval); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub this { |
45
|
0
|
|
|
0
|
0
|
0
|
my $ptr = shift; |
46
|
0
|
|
|
|
|
0
|
return tied(%$ptr); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
# ------- FUNCTION WRAPPERS -------- |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
package Ufal::UDPipe; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Children ############## |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
package Ufal::UDPipe::Children; |
58
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
59
|
2
|
|
|
2
|
|
40
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1101
|
|
60
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
61
|
|
|
|
|
|
|
%OWNER = (); |
62
|
|
|
|
|
|
|
%ITERATORS = (); |
63
|
|
|
|
|
|
|
sub new { |
64
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
65
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_Children(@_); |
66
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
*size = *Ufal::UDPipec::Children_size; |
70
|
|
|
|
|
|
|
*empty = *Ufal::UDPipec::Children_empty; |
71
|
|
|
|
|
|
|
*clear = *Ufal::UDPipec::Children_clear; |
72
|
|
|
|
|
|
|
*push = *Ufal::UDPipec::Children_push; |
73
|
|
|
|
|
|
|
*pop = *Ufal::UDPipec::Children_pop; |
74
|
|
|
|
|
|
|
*get = *Ufal::UDPipec::Children_get; |
75
|
|
|
|
|
|
|
*set = *Ufal::UDPipec::Children_set; |
76
|
|
|
|
|
|
|
sub DESTROY { |
77
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
78
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
79
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
80
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
81
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
82
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_Children($self); |
83
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
84
|
|
|
|
|
|
|
} |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
sub DISOWN { |
88
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
89
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
90
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
sub ACQUIRE { |
94
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
95
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
96
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Bytes ############## |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
package Ufal::UDPipe::Bytes; |
103
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
104
|
2
|
|
|
2
|
|
17
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
924
|
|
105
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
106
|
|
|
|
|
|
|
%OWNER = (); |
107
|
|
|
|
|
|
|
%ITERATORS = (); |
108
|
|
|
|
|
|
|
sub new { |
109
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
110
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_Bytes(@_); |
111
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
*size = *Ufal::UDPipec::Bytes_size; |
115
|
|
|
|
|
|
|
*empty = *Ufal::UDPipec::Bytes_empty; |
116
|
|
|
|
|
|
|
*clear = *Ufal::UDPipec::Bytes_clear; |
117
|
|
|
|
|
|
|
*push = *Ufal::UDPipec::Bytes_push; |
118
|
|
|
|
|
|
|
*pop = *Ufal::UDPipec::Bytes_pop; |
119
|
|
|
|
|
|
|
*get = *Ufal::UDPipec::Bytes_get; |
120
|
|
|
|
|
|
|
*set = *Ufal::UDPipec::Bytes_set; |
121
|
|
|
|
|
|
|
sub DESTROY { |
122
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
123
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
124
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
125
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
126
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
127
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_Bytes($self); |
128
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
129
|
|
|
|
|
|
|
} |
130
|
|
|
|
|
|
|
} |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
sub DISOWN { |
133
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
134
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
135
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
136
|
|
|
|
|
|
|
} |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
sub ACQUIRE { |
139
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
140
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
141
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
142
|
|
|
|
|
|
|
} |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Comments ############## |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
package Ufal::UDPipe::Comments; |
148
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
149
|
2
|
|
|
2
|
|
17
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
971
|
|
150
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
151
|
|
|
|
|
|
|
%OWNER = (); |
152
|
|
|
|
|
|
|
%ITERATORS = (); |
153
|
|
|
|
|
|
|
sub new { |
154
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
155
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_Comments(@_); |
156
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
157
|
|
|
|
|
|
|
} |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
*size = *Ufal::UDPipec::Comments_size; |
160
|
|
|
|
|
|
|
*empty = *Ufal::UDPipec::Comments_empty; |
161
|
|
|
|
|
|
|
*clear = *Ufal::UDPipec::Comments_clear; |
162
|
|
|
|
|
|
|
*push = *Ufal::UDPipec::Comments_push; |
163
|
|
|
|
|
|
|
*pop = *Ufal::UDPipec::Comments_pop; |
164
|
|
|
|
|
|
|
*get = *Ufal::UDPipec::Comments_get; |
165
|
|
|
|
|
|
|
*set = *Ufal::UDPipec::Comments_set; |
166
|
|
|
|
|
|
|
sub DESTROY { |
167
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
168
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
169
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
170
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
171
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
172
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_Comments($self); |
173
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
174
|
|
|
|
|
|
|
} |
175
|
|
|
|
|
|
|
} |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
sub DISOWN { |
178
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
179
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
180
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
181
|
|
|
|
|
|
|
} |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
sub ACQUIRE { |
184
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
185
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
186
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
187
|
|
|
|
|
|
|
} |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::ProcessingError ############## |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
package Ufal::UDPipe::ProcessingError; |
193
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
194
|
2
|
|
|
2
|
|
16
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
814
|
|
195
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
196
|
|
|
|
|
|
|
%OWNER = (); |
197
|
|
|
|
|
|
|
%ITERATORS = (); |
198
|
|
|
|
|
|
|
*occurred = *Ufal::UDPipec::ProcessingError_occurred; |
199
|
|
|
|
|
|
|
*swig_message_get = *Ufal::UDPipec::ProcessingError_message_get; |
200
|
|
|
|
|
|
|
*swig_message_set = *Ufal::UDPipec::ProcessingError_message_set; |
201
|
|
|
|
|
|
|
sub new { |
202
|
1
|
|
|
1
|
|
12
|
my $pkg = shift; |
203
|
1
|
|
|
|
|
21
|
my $self = Ufal::UDPipec::new_ProcessingError(@_); |
204
|
1
|
50
|
|
|
|
9
|
bless $self, $pkg if defined($self); |
205
|
|
|
|
|
|
|
} |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
sub DESTROY { |
208
|
2
|
100
|
|
2
|
|
3598
|
return unless $_[0]->isa('HASH'); |
209
|
1
|
|
|
|
|
3
|
my $self = tied(%{$_[0]}); |
|
1
|
|
|
|
|
5
|
|
210
|
1
|
50
|
|
|
|
5
|
return unless defined $self; |
211
|
1
|
|
|
|
|
3
|
delete $ITERATORS{$self}; |
212
|
1
|
50
|
|
|
|
4
|
if (exists $OWNER{$self}) { |
213
|
1
|
|
|
|
|
9
|
Ufal::UDPipec::delete_ProcessingError($self); |
214
|
1
|
|
|
|
|
4
|
delete $OWNER{$self}; |
215
|
|
|
|
|
|
|
} |
216
|
|
|
|
|
|
|
} |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
sub DISOWN { |
219
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
220
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
221
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
222
|
|
|
|
|
|
|
} |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
sub ACQUIRE { |
225
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
226
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
227
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
228
|
|
|
|
|
|
|
} |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Token ############## |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
package Ufal::UDPipe::Token; |
234
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
235
|
2
|
|
|
2
|
|
18
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1011
|
|
236
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
237
|
|
|
|
|
|
|
%OWNER = (); |
238
|
|
|
|
|
|
|
%ITERATORS = (); |
239
|
|
|
|
|
|
|
*swig_form_get = *Ufal::UDPipec::Token_form_get; |
240
|
|
|
|
|
|
|
*swig_form_set = *Ufal::UDPipec::Token_form_set; |
241
|
|
|
|
|
|
|
*swig_misc_get = *Ufal::UDPipec::Token_misc_get; |
242
|
|
|
|
|
|
|
*swig_misc_set = *Ufal::UDPipec::Token_misc_set; |
243
|
|
|
|
|
|
|
sub new { |
244
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
245
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_Token(@_); |
246
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
247
|
|
|
|
|
|
|
} |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
*getSpaceAfter = *Ufal::UDPipec::Token_getSpaceAfter; |
250
|
|
|
|
|
|
|
*setSpaceAfter = *Ufal::UDPipec::Token_setSpaceAfter; |
251
|
|
|
|
|
|
|
*getSpacesBefore = *Ufal::UDPipec::Token_getSpacesBefore; |
252
|
|
|
|
|
|
|
*setSpacesBefore = *Ufal::UDPipec::Token_setSpacesBefore; |
253
|
|
|
|
|
|
|
*getSpacesAfter = *Ufal::UDPipec::Token_getSpacesAfter; |
254
|
|
|
|
|
|
|
*setSpacesAfter = *Ufal::UDPipec::Token_setSpacesAfter; |
255
|
|
|
|
|
|
|
*getSpacesInToken = *Ufal::UDPipec::Token_getSpacesInToken; |
256
|
|
|
|
|
|
|
*setSpacesInToken = *Ufal::UDPipec::Token_setSpacesInToken; |
257
|
|
|
|
|
|
|
*getTokenRange = *Ufal::UDPipec::Token_getTokenRange; |
258
|
|
|
|
|
|
|
*getTokenRangeStart = *Ufal::UDPipec::Token_getTokenRangeStart; |
259
|
|
|
|
|
|
|
*getTokenRangeEnd = *Ufal::UDPipec::Token_getTokenRangeEnd; |
260
|
|
|
|
|
|
|
*setTokenRange = *Ufal::UDPipec::Token_setTokenRange; |
261
|
|
|
|
|
|
|
sub DESTROY { |
262
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
263
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
264
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
265
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
266
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
267
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_Token($self); |
268
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
269
|
|
|
|
|
|
|
} |
270
|
|
|
|
|
|
|
} |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
sub DISOWN { |
273
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
274
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
275
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
276
|
|
|
|
|
|
|
} |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
sub ACQUIRE { |
279
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
280
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
281
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
282
|
|
|
|
|
|
|
} |
283
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Word ############## |
286
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
package Ufal::UDPipe::Word; |
288
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
289
|
2
|
|
|
2
|
|
16
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
24
|
|
|
2
|
|
|
|
|
1165
|
|
290
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe::Token Ufal::UDPipe ); |
291
|
|
|
|
|
|
|
%OWNER = (); |
292
|
|
|
|
|
|
|
%ITERATORS = (); |
293
|
|
|
|
|
|
|
*swig_id_get = *Ufal::UDPipec::Word_id_get; |
294
|
|
|
|
|
|
|
*swig_id_set = *Ufal::UDPipec::Word_id_set; |
295
|
|
|
|
|
|
|
*swig_lemma_get = *Ufal::UDPipec::Word_lemma_get; |
296
|
|
|
|
|
|
|
*swig_lemma_set = *Ufal::UDPipec::Word_lemma_set; |
297
|
|
|
|
|
|
|
*swig_upostag_get = *Ufal::UDPipec::Word_upostag_get; |
298
|
|
|
|
|
|
|
*swig_upostag_set = *Ufal::UDPipec::Word_upostag_set; |
299
|
|
|
|
|
|
|
*swig_xpostag_get = *Ufal::UDPipec::Word_xpostag_get; |
300
|
|
|
|
|
|
|
*swig_xpostag_set = *Ufal::UDPipec::Word_xpostag_set; |
301
|
|
|
|
|
|
|
*swig_feats_get = *Ufal::UDPipec::Word_feats_get; |
302
|
|
|
|
|
|
|
*swig_feats_set = *Ufal::UDPipec::Word_feats_set; |
303
|
|
|
|
|
|
|
*swig_head_get = *Ufal::UDPipec::Word_head_get; |
304
|
|
|
|
|
|
|
*swig_head_set = *Ufal::UDPipec::Word_head_set; |
305
|
|
|
|
|
|
|
*swig_deprel_get = *Ufal::UDPipec::Word_deprel_get; |
306
|
|
|
|
|
|
|
*swig_deprel_set = *Ufal::UDPipec::Word_deprel_set; |
307
|
|
|
|
|
|
|
*swig_deps_get = *Ufal::UDPipec::Word_deps_get; |
308
|
|
|
|
|
|
|
*swig_deps_set = *Ufal::UDPipec::Word_deps_set; |
309
|
|
|
|
|
|
|
*swig_children_get = *Ufal::UDPipec::Word_children_get; |
310
|
|
|
|
|
|
|
*swig_children_set = *Ufal::UDPipec::Word_children_set; |
311
|
|
|
|
|
|
|
sub new { |
312
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
313
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_Word(@_); |
314
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
315
|
|
|
|
|
|
|
} |
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
sub DESTROY { |
318
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
319
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
320
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
321
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
322
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
323
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_Word($self); |
324
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
325
|
|
|
|
|
|
|
} |
326
|
|
|
|
|
|
|
} |
327
|
|
|
|
|
|
|
|
328
|
|
|
|
|
|
|
sub DISOWN { |
329
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
330
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
331
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
332
|
|
|
|
|
|
|
} |
333
|
|
|
|
|
|
|
|
334
|
|
|
|
|
|
|
sub ACQUIRE { |
335
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
336
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
337
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
338
|
|
|
|
|
|
|
} |
339
|
|
|
|
|
|
|
|
340
|
|
|
|
|
|
|
|
341
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Words ############## |
342
|
|
|
|
|
|
|
|
343
|
|
|
|
|
|
|
package Ufal::UDPipe::Words; |
344
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
345
|
2
|
|
|
2
|
|
17
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
800
|
|
346
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
347
|
|
|
|
|
|
|
%OWNER = (); |
348
|
|
|
|
|
|
|
%ITERATORS = (); |
349
|
|
|
|
|
|
|
sub new { |
350
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
351
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_Words(@_); |
352
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
353
|
|
|
|
|
|
|
} |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
*size = *Ufal::UDPipec::Words_size; |
356
|
|
|
|
|
|
|
*empty = *Ufal::UDPipec::Words_empty; |
357
|
|
|
|
|
|
|
*clear = *Ufal::UDPipec::Words_clear; |
358
|
|
|
|
|
|
|
*push = *Ufal::UDPipec::Words_push; |
359
|
|
|
|
|
|
|
*pop = *Ufal::UDPipec::Words_pop; |
360
|
|
|
|
|
|
|
*get = *Ufal::UDPipec::Words_get; |
361
|
|
|
|
|
|
|
*set = *Ufal::UDPipec::Words_set; |
362
|
|
|
|
|
|
|
sub DESTROY { |
363
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
364
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
365
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
366
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
367
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
368
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_Words($self); |
369
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
370
|
|
|
|
|
|
|
} |
371
|
|
|
|
|
|
|
} |
372
|
|
|
|
|
|
|
|
373
|
|
|
|
|
|
|
sub DISOWN { |
374
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
375
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
376
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
377
|
|
|
|
|
|
|
} |
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
sub ACQUIRE { |
380
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
381
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
382
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
383
|
|
|
|
|
|
|
} |
384
|
|
|
|
|
|
|
|
385
|
|
|
|
|
|
|
|
386
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::MultiwordToken ############## |
387
|
|
|
|
|
|
|
|
388
|
|
|
|
|
|
|
package Ufal::UDPipe::MultiwordToken; |
389
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
390
|
2
|
|
|
2
|
|
15
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
775
|
|
391
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe::Token Ufal::UDPipe ); |
392
|
|
|
|
|
|
|
%OWNER = (); |
393
|
|
|
|
|
|
|
%ITERATORS = (); |
394
|
|
|
|
|
|
|
*swig_idFirst_get = *Ufal::UDPipec::MultiwordToken_idFirst_get; |
395
|
|
|
|
|
|
|
*swig_idFirst_set = *Ufal::UDPipec::MultiwordToken_idFirst_set; |
396
|
|
|
|
|
|
|
*swig_idLast_get = *Ufal::UDPipec::MultiwordToken_idLast_get; |
397
|
|
|
|
|
|
|
*swig_idLast_set = *Ufal::UDPipec::MultiwordToken_idLast_set; |
398
|
|
|
|
|
|
|
sub new { |
399
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
400
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_MultiwordToken(@_); |
401
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
402
|
|
|
|
|
|
|
} |
403
|
|
|
|
|
|
|
|
404
|
|
|
|
|
|
|
sub DESTROY { |
405
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
406
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
407
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
408
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
409
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
410
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_MultiwordToken($self); |
411
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
412
|
|
|
|
|
|
|
} |
413
|
|
|
|
|
|
|
} |
414
|
|
|
|
|
|
|
|
415
|
|
|
|
|
|
|
sub DISOWN { |
416
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
417
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
418
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
419
|
|
|
|
|
|
|
} |
420
|
|
|
|
|
|
|
|
421
|
|
|
|
|
|
|
sub ACQUIRE { |
422
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
423
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
424
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
425
|
|
|
|
|
|
|
} |
426
|
|
|
|
|
|
|
|
427
|
|
|
|
|
|
|
|
428
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::MultiwordTokens ############## |
429
|
|
|
|
|
|
|
|
430
|
|
|
|
|
|
|
package Ufal::UDPipe::MultiwordTokens; |
431
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
432
|
2
|
|
|
2
|
|
16
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
753
|
|
433
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
434
|
|
|
|
|
|
|
%OWNER = (); |
435
|
|
|
|
|
|
|
%ITERATORS = (); |
436
|
|
|
|
|
|
|
sub new { |
437
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
438
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_MultiwordTokens(@_); |
439
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
440
|
|
|
|
|
|
|
} |
441
|
|
|
|
|
|
|
|
442
|
|
|
|
|
|
|
*size = *Ufal::UDPipec::MultiwordTokens_size; |
443
|
|
|
|
|
|
|
*empty = *Ufal::UDPipec::MultiwordTokens_empty; |
444
|
|
|
|
|
|
|
*clear = *Ufal::UDPipec::MultiwordTokens_clear; |
445
|
|
|
|
|
|
|
*push = *Ufal::UDPipec::MultiwordTokens_push; |
446
|
|
|
|
|
|
|
*pop = *Ufal::UDPipec::MultiwordTokens_pop; |
447
|
|
|
|
|
|
|
*get = *Ufal::UDPipec::MultiwordTokens_get; |
448
|
|
|
|
|
|
|
*set = *Ufal::UDPipec::MultiwordTokens_set; |
449
|
|
|
|
|
|
|
sub DESTROY { |
450
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
451
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
452
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
453
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
454
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
455
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_MultiwordTokens($self); |
456
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
457
|
|
|
|
|
|
|
} |
458
|
|
|
|
|
|
|
} |
459
|
|
|
|
|
|
|
|
460
|
|
|
|
|
|
|
sub DISOWN { |
461
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
462
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
463
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
464
|
|
|
|
|
|
|
} |
465
|
|
|
|
|
|
|
|
466
|
|
|
|
|
|
|
sub ACQUIRE { |
467
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
468
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
469
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
470
|
|
|
|
|
|
|
} |
471
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
|
473
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::EmptyNode ############## |
474
|
|
|
|
|
|
|
|
475
|
|
|
|
|
|
|
package Ufal::UDPipe::EmptyNode; |
476
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
477
|
2
|
|
|
2
|
|
20
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
986
|
|
478
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
479
|
|
|
|
|
|
|
%OWNER = (); |
480
|
|
|
|
|
|
|
%ITERATORS = (); |
481
|
|
|
|
|
|
|
*swig_id_get = *Ufal::UDPipec::EmptyNode_id_get; |
482
|
|
|
|
|
|
|
*swig_id_set = *Ufal::UDPipec::EmptyNode_id_set; |
483
|
|
|
|
|
|
|
*swig_index_get = *Ufal::UDPipec::EmptyNode_index_get; |
484
|
|
|
|
|
|
|
*swig_index_set = *Ufal::UDPipec::EmptyNode_index_set; |
485
|
|
|
|
|
|
|
*swig_form_get = *Ufal::UDPipec::EmptyNode_form_get; |
486
|
|
|
|
|
|
|
*swig_form_set = *Ufal::UDPipec::EmptyNode_form_set; |
487
|
|
|
|
|
|
|
*swig_lemma_get = *Ufal::UDPipec::EmptyNode_lemma_get; |
488
|
|
|
|
|
|
|
*swig_lemma_set = *Ufal::UDPipec::EmptyNode_lemma_set; |
489
|
|
|
|
|
|
|
*swig_upostag_get = *Ufal::UDPipec::EmptyNode_upostag_get; |
490
|
|
|
|
|
|
|
*swig_upostag_set = *Ufal::UDPipec::EmptyNode_upostag_set; |
491
|
|
|
|
|
|
|
*swig_xpostag_get = *Ufal::UDPipec::EmptyNode_xpostag_get; |
492
|
|
|
|
|
|
|
*swig_xpostag_set = *Ufal::UDPipec::EmptyNode_xpostag_set; |
493
|
|
|
|
|
|
|
*swig_feats_get = *Ufal::UDPipec::EmptyNode_feats_get; |
494
|
|
|
|
|
|
|
*swig_feats_set = *Ufal::UDPipec::EmptyNode_feats_set; |
495
|
|
|
|
|
|
|
*swig_deps_get = *Ufal::UDPipec::EmptyNode_deps_get; |
496
|
|
|
|
|
|
|
*swig_deps_set = *Ufal::UDPipec::EmptyNode_deps_set; |
497
|
|
|
|
|
|
|
*swig_misc_get = *Ufal::UDPipec::EmptyNode_misc_get; |
498
|
|
|
|
|
|
|
*swig_misc_set = *Ufal::UDPipec::EmptyNode_misc_set; |
499
|
|
|
|
|
|
|
sub new { |
500
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
501
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_EmptyNode(@_); |
502
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
503
|
|
|
|
|
|
|
} |
504
|
|
|
|
|
|
|
|
505
|
|
|
|
|
|
|
sub DESTROY { |
506
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
507
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
508
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
509
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
510
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
511
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_EmptyNode($self); |
512
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
513
|
|
|
|
|
|
|
} |
514
|
|
|
|
|
|
|
} |
515
|
|
|
|
|
|
|
|
516
|
|
|
|
|
|
|
sub DISOWN { |
517
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
518
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
519
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
520
|
|
|
|
|
|
|
} |
521
|
|
|
|
|
|
|
|
522
|
|
|
|
|
|
|
sub ACQUIRE { |
523
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
524
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
525
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
526
|
|
|
|
|
|
|
} |
527
|
|
|
|
|
|
|
|
528
|
|
|
|
|
|
|
|
529
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::EmptyNodes ############## |
530
|
|
|
|
|
|
|
|
531
|
|
|
|
|
|
|
package Ufal::UDPipe::EmptyNodes; |
532
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
533
|
2
|
|
|
2
|
|
23
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
760
|
|
534
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
535
|
|
|
|
|
|
|
%OWNER = (); |
536
|
|
|
|
|
|
|
%ITERATORS = (); |
537
|
|
|
|
|
|
|
sub new { |
538
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
539
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_EmptyNodes(@_); |
540
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
541
|
|
|
|
|
|
|
} |
542
|
|
|
|
|
|
|
|
543
|
|
|
|
|
|
|
*size = *Ufal::UDPipec::EmptyNodes_size; |
544
|
|
|
|
|
|
|
*empty = *Ufal::UDPipec::EmptyNodes_empty; |
545
|
|
|
|
|
|
|
*clear = *Ufal::UDPipec::EmptyNodes_clear; |
546
|
|
|
|
|
|
|
*push = *Ufal::UDPipec::EmptyNodes_push; |
547
|
|
|
|
|
|
|
*pop = *Ufal::UDPipec::EmptyNodes_pop; |
548
|
|
|
|
|
|
|
*get = *Ufal::UDPipec::EmptyNodes_get; |
549
|
|
|
|
|
|
|
*set = *Ufal::UDPipec::EmptyNodes_set; |
550
|
|
|
|
|
|
|
sub DESTROY { |
551
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
552
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
553
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
554
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
555
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
556
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_EmptyNodes($self); |
557
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
558
|
|
|
|
|
|
|
} |
559
|
|
|
|
|
|
|
} |
560
|
|
|
|
|
|
|
|
561
|
|
|
|
|
|
|
sub DISOWN { |
562
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
563
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
564
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
565
|
|
|
|
|
|
|
} |
566
|
|
|
|
|
|
|
|
567
|
|
|
|
|
|
|
sub ACQUIRE { |
568
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
569
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
570
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
571
|
|
|
|
|
|
|
} |
572
|
|
|
|
|
|
|
|
573
|
|
|
|
|
|
|
|
574
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Sentence ############## |
575
|
|
|
|
|
|
|
|
576
|
|
|
|
|
|
|
package Ufal::UDPipe::Sentence; |
577
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
578
|
2
|
|
|
2
|
|
17
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
1126
|
|
579
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
580
|
|
|
|
|
|
|
%OWNER = (); |
581
|
|
|
|
|
|
|
%ITERATORS = (); |
582
|
|
|
|
|
|
|
sub new { |
583
|
1
|
|
|
1
|
|
115955
|
my $pkg = shift; |
584
|
1
|
|
|
|
|
23
|
my $self = Ufal::UDPipec::new_Sentence(@_); |
585
|
1
|
50
|
|
|
|
12
|
bless $self, $pkg if defined($self); |
586
|
|
|
|
|
|
|
} |
587
|
|
|
|
|
|
|
|
588
|
|
|
|
|
|
|
*swig_words_get = *Ufal::UDPipec::Sentence_words_get; |
589
|
|
|
|
|
|
|
*swig_words_set = *Ufal::UDPipec::Sentence_words_set; |
590
|
|
|
|
|
|
|
*swig_multiwordTokens_get = *Ufal::UDPipec::Sentence_multiwordTokens_get; |
591
|
|
|
|
|
|
|
*swig_multiwordTokens_set = *Ufal::UDPipec::Sentence_multiwordTokens_set; |
592
|
|
|
|
|
|
|
*swig_emptyNodes_get = *Ufal::UDPipec::Sentence_emptyNodes_get; |
593
|
|
|
|
|
|
|
*swig_emptyNodes_set = *Ufal::UDPipec::Sentence_emptyNodes_set; |
594
|
|
|
|
|
|
|
*swig_comments_get = *Ufal::UDPipec::Sentence_comments_get; |
595
|
|
|
|
|
|
|
*swig_comments_set = *Ufal::UDPipec::Sentence_comments_set; |
596
|
|
|
|
|
|
|
*rootForm = *Ufal::UDPipec::Sentence_rootForm; |
597
|
|
|
|
|
|
|
*empty = *Ufal::UDPipec::Sentence_empty; |
598
|
|
|
|
|
|
|
*clear = *Ufal::UDPipec::Sentence_clear; |
599
|
|
|
|
|
|
|
*addWord = *Ufal::UDPipec::Sentence_addWord; |
600
|
|
|
|
|
|
|
*setHead = *Ufal::UDPipec::Sentence_setHead; |
601
|
|
|
|
|
|
|
*unlinkAllNodes = *Ufal::UDPipec::Sentence_unlinkAllNodes; |
602
|
|
|
|
|
|
|
*getNewDoc = *Ufal::UDPipec::Sentence_getNewDoc; |
603
|
|
|
|
|
|
|
*getNewDocId = *Ufal::UDPipec::Sentence_getNewDocId; |
604
|
|
|
|
|
|
|
*setNewDoc = *Ufal::UDPipec::Sentence_setNewDoc; |
605
|
|
|
|
|
|
|
*getNewPar = *Ufal::UDPipec::Sentence_getNewPar; |
606
|
|
|
|
|
|
|
*getNewParId = *Ufal::UDPipec::Sentence_getNewParId; |
607
|
|
|
|
|
|
|
*setNewPar = *Ufal::UDPipec::Sentence_setNewPar; |
608
|
|
|
|
|
|
|
*getSentId = *Ufal::UDPipec::Sentence_getSentId; |
609
|
|
|
|
|
|
|
*setSentId = *Ufal::UDPipec::Sentence_setSentId; |
610
|
|
|
|
|
|
|
*getText = *Ufal::UDPipec::Sentence_getText; |
611
|
|
|
|
|
|
|
*setText = *Ufal::UDPipec::Sentence_setText; |
612
|
|
|
|
|
|
|
sub DESTROY { |
613
|
2
|
100
|
|
2
|
|
17
|
return unless $_[0]->isa('HASH'); |
614
|
1
|
|
|
|
|
3
|
my $self = tied(%{$_[0]}); |
|
1
|
|
|
|
|
4
|
|
615
|
1
|
50
|
|
|
|
6
|
return unless defined $self; |
616
|
1
|
|
|
|
|
2
|
delete $ITERATORS{$self}; |
617
|
1
|
50
|
|
|
|
7
|
if (exists $OWNER{$self}) { |
618
|
1
|
|
|
|
|
19
|
Ufal::UDPipec::delete_Sentence($self); |
619
|
1
|
|
|
|
|
6
|
delete $OWNER{$self}; |
620
|
|
|
|
|
|
|
} |
621
|
|
|
|
|
|
|
} |
622
|
|
|
|
|
|
|
|
623
|
|
|
|
|
|
|
sub DISOWN { |
624
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
625
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
626
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
627
|
|
|
|
|
|
|
} |
628
|
|
|
|
|
|
|
|
629
|
|
|
|
|
|
|
sub ACQUIRE { |
630
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
631
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
632
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
633
|
|
|
|
|
|
|
} |
634
|
|
|
|
|
|
|
|
635
|
|
|
|
|
|
|
|
636
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Sentences ############## |
637
|
|
|
|
|
|
|
|
638
|
|
|
|
|
|
|
package Ufal::UDPipe::Sentences; |
639
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
640
|
2
|
|
|
2
|
|
16
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
744
|
|
641
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
642
|
|
|
|
|
|
|
%OWNER = (); |
643
|
|
|
|
|
|
|
%ITERATORS = (); |
644
|
|
|
|
|
|
|
sub new { |
645
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
646
|
0
|
|
|
|
|
0
|
my $self = Ufal::UDPipec::new_Sentences(@_); |
647
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
648
|
|
|
|
|
|
|
} |
649
|
|
|
|
|
|
|
|
650
|
|
|
|
|
|
|
*size = *Ufal::UDPipec::Sentences_size; |
651
|
|
|
|
|
|
|
*empty = *Ufal::UDPipec::Sentences_empty; |
652
|
|
|
|
|
|
|
*clear = *Ufal::UDPipec::Sentences_clear; |
653
|
|
|
|
|
|
|
*push = *Ufal::UDPipec::Sentences_push; |
654
|
|
|
|
|
|
|
*pop = *Ufal::UDPipec::Sentences_pop; |
655
|
|
|
|
|
|
|
*get = *Ufal::UDPipec::Sentences_get; |
656
|
|
|
|
|
|
|
*set = *Ufal::UDPipec::Sentences_set; |
657
|
|
|
|
|
|
|
sub DESTROY { |
658
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
659
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
660
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
661
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
662
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
663
|
0
|
|
|
|
|
0
|
Ufal::UDPipec::delete_Sentences($self); |
664
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
665
|
|
|
|
|
|
|
} |
666
|
|
|
|
|
|
|
} |
667
|
|
|
|
|
|
|
|
668
|
|
|
|
|
|
|
sub DISOWN { |
669
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
670
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
671
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
672
|
|
|
|
|
|
|
} |
673
|
|
|
|
|
|
|
|
674
|
|
|
|
|
|
|
sub ACQUIRE { |
675
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
676
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
677
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
678
|
|
|
|
|
|
|
} |
679
|
|
|
|
|
|
|
|
680
|
|
|
|
|
|
|
|
681
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::InputFormat ############## |
682
|
|
|
|
|
|
|
|
683
|
|
|
|
|
|
|
package Ufal::UDPipe::InputFormat; |
684
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
685
|
2
|
|
|
2
|
|
16
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
31
|
|
|
2
|
|
|
|
|
822
|
|
686
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
687
|
|
|
|
|
|
|
%OWNER = (); |
688
|
|
|
|
|
|
|
%ITERATORS = (); |
689
|
|
|
|
|
|
|
sub DESTROY { |
690
|
2
|
100
|
|
2
|
|
14
|
return unless $_[0]->isa('HASH'); |
691
|
1
|
|
|
|
|
3
|
my $self = tied(%{$_[0]}); |
|
1
|
|
|
|
|
3
|
|
692
|
1
|
50
|
|
|
|
4
|
return unless defined $self; |
693
|
1
|
|
|
|
|
4
|
delete $ITERATORS{$self}; |
694
|
1
|
50
|
|
|
|
5
|
if (exists $OWNER{$self}) { |
695
|
1
|
|
|
|
|
43
|
Ufal::UDPipec::delete_InputFormat($self); |
696
|
1
|
|
|
|
|
7
|
delete $OWNER{$self}; |
697
|
|
|
|
|
|
|
} |
698
|
|
|
|
|
|
|
} |
699
|
|
|
|
|
|
|
|
700
|
|
|
|
|
|
|
*resetDocument = *Ufal::UDPipec::InputFormat_resetDocument; |
701
|
|
|
|
|
|
|
*setText = *Ufal::UDPipec::InputFormat_setText; |
702
|
|
|
|
|
|
|
*nextSentence = *Ufal::UDPipec::InputFormat_nextSentence; |
703
|
|
|
|
|
|
|
*newInputFormat = *Ufal::UDPipec::InputFormat_newInputFormat; |
704
|
|
|
|
|
|
|
*newConlluInputFormat = *Ufal::UDPipec::InputFormat_newConlluInputFormat; |
705
|
|
|
|
|
|
|
*newGenericTokenizerInputFormat = *Ufal::UDPipec::InputFormat_newGenericTokenizerInputFormat; |
706
|
|
|
|
|
|
|
*newHorizontalInputFormat = *Ufal::UDPipec::InputFormat_newHorizontalInputFormat; |
707
|
|
|
|
|
|
|
*newVerticalInputFormat = *Ufal::UDPipec::InputFormat_newVerticalInputFormat; |
708
|
|
|
|
|
|
|
*newPresegmentedTokenizer = *Ufal::UDPipec::InputFormat_newPresegmentedTokenizer; |
709
|
|
|
|
|
|
|
*CONLLU_V1 = *Ufal::UDPipec::InputFormat_CONLLU_V1; |
710
|
|
|
|
|
|
|
*CONLLU_V2 = *Ufal::UDPipec::InputFormat_CONLLU_V2; |
711
|
|
|
|
|
|
|
*GENERIC_TOKENIZER_NORMALIZED_SPACES = *Ufal::UDPipec::InputFormat_GENERIC_TOKENIZER_NORMALIZED_SPACES; |
712
|
|
|
|
|
|
|
*GENERIC_TOKENIZER_PRESEGMENTED = *Ufal::UDPipec::InputFormat_GENERIC_TOKENIZER_PRESEGMENTED; |
713
|
|
|
|
|
|
|
*GENERIC_TOKENIZER_RANGES = *Ufal::UDPipec::InputFormat_GENERIC_TOKENIZER_RANGES; |
714
|
|
|
|
|
|
|
sub DISOWN { |
715
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
716
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
717
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
718
|
|
|
|
|
|
|
} |
719
|
|
|
|
|
|
|
|
720
|
|
|
|
|
|
|
sub ACQUIRE { |
721
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
722
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
723
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
724
|
|
|
|
|
|
|
} |
725
|
|
|
|
|
|
|
|
726
|
|
|
|
|
|
|
|
727
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::OutputFormat ############## |
728
|
|
|
|
|
|
|
|
729
|
|
|
|
|
|
|
package Ufal::UDPipe::OutputFormat; |
730
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
731
|
2
|
|
|
2
|
|
15
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
25
|
|
|
2
|
|
|
|
|
799
|
|
732
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
733
|
|
|
|
|
|
|
%OWNER = (); |
734
|
|
|
|
|
|
|
%ITERATORS = (); |
735
|
|
|
|
|
|
|
sub DESTROY { |
736
|
2
|
100
|
|
2
|
|
16
|
return unless $_[0]->isa('HASH'); |
737
|
1
|
|
|
|
|
3
|
my $self = tied(%{$_[0]}); |
|
1
|
|
|
|
|
3
|
|
738
|
1
|
50
|
|
|
|
13
|
return unless defined $self; |
739
|
1
|
|
|
|
|
4
|
delete $ITERATORS{$self}; |
740
|
1
|
50
|
|
|
|
5
|
if (exists $OWNER{$self}) { |
741
|
1
|
|
|
|
|
7
|
Ufal::UDPipec::delete_OutputFormat($self); |
742
|
1
|
|
|
|
|
4
|
delete $OWNER{$self}; |
743
|
|
|
|
|
|
|
} |
744
|
|
|
|
|
|
|
} |
745
|
|
|
|
|
|
|
|
746
|
|
|
|
|
|
|
*writeSentence = *Ufal::UDPipec::OutputFormat_writeSentence; |
747
|
|
|
|
|
|
|
*finishDocument = *Ufal::UDPipec::OutputFormat_finishDocument; |
748
|
|
|
|
|
|
|
*newOutputFormat = *Ufal::UDPipec::OutputFormat_newOutputFormat; |
749
|
|
|
|
|
|
|
*newConlluOutputFormat = *Ufal::UDPipec::OutputFormat_newConlluOutputFormat; |
750
|
|
|
|
|
|
|
*newEpeOutputFormat = *Ufal::UDPipec::OutputFormat_newEpeOutputFormat; |
751
|
|
|
|
|
|
|
*newMatxinOutputFormat = *Ufal::UDPipec::OutputFormat_newMatxinOutputFormat; |
752
|
|
|
|
|
|
|
*newHorizontalOutputFormat = *Ufal::UDPipec::OutputFormat_newHorizontalOutputFormat; |
753
|
|
|
|
|
|
|
*newPlaintextOutputFormat = *Ufal::UDPipec::OutputFormat_newPlaintextOutputFormat; |
754
|
|
|
|
|
|
|
*newVerticalOutputFormat = *Ufal::UDPipec::OutputFormat_newVerticalOutputFormat; |
755
|
|
|
|
|
|
|
*CONLLU_V1 = *Ufal::UDPipec::OutputFormat_CONLLU_V1; |
756
|
|
|
|
|
|
|
*CONLLU_V2 = *Ufal::UDPipec::OutputFormat_CONLLU_V2; |
757
|
|
|
|
|
|
|
*HORIZONTAL_PARAGRAPHS = *Ufal::UDPipec::OutputFormat_HORIZONTAL_PARAGRAPHS; |
758
|
|
|
|
|
|
|
*PLAINTEXT_NORMALIZED_SPACES = *Ufal::UDPipec::OutputFormat_PLAINTEXT_NORMALIZED_SPACES; |
759
|
|
|
|
|
|
|
*VERTICAL_PARAGRAPHS = *Ufal::UDPipec::OutputFormat_VERTICAL_PARAGRAPHS; |
760
|
|
|
|
|
|
|
sub DISOWN { |
761
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
762
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
763
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
764
|
|
|
|
|
|
|
} |
765
|
|
|
|
|
|
|
|
766
|
|
|
|
|
|
|
sub ACQUIRE { |
767
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
768
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
769
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
770
|
|
|
|
|
|
|
} |
771
|
|
|
|
|
|
|
|
772
|
|
|
|
|
|
|
|
773
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Model ############## |
774
|
|
|
|
|
|
|
|
775
|
|
|
|
|
|
|
package Ufal::UDPipe::Model; |
776
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
777
|
2
|
|
|
2
|
|
15
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
651
|
|
778
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
779
|
|
|
|
|
|
|
%OWNER = (); |
780
|
|
|
|
|
|
|
%ITERATORS = (); |
781
|
|
|
|
|
|
|
sub DESTROY { |
782
|
2
|
100
|
|
2
|
|
145
|
return unless $_[0]->isa('HASH'); |
783
|
1
|
|
|
|
|
3
|
my $self = tied(%{$_[0]}); |
|
1
|
|
|
|
|
4
|
|
784
|
1
|
50
|
|
|
|
5
|
return unless defined $self; |
785
|
1
|
|
|
|
|
2
|
delete $ITERATORS{$self}; |
786
|
1
|
50
|
|
|
|
4
|
if (exists $OWNER{$self}) { |
787
|
1
|
|
|
|
|
262
|
Ufal::UDPipec::delete_Model($self); |
788
|
1
|
|
|
|
|
8
|
delete $OWNER{$self}; |
789
|
|
|
|
|
|
|
} |
790
|
|
|
|
|
|
|
} |
791
|
|
|
|
|
|
|
|
792
|
|
|
|
|
|
|
*load = *Ufal::UDPipec::Model_load; |
793
|
|
|
|
|
|
|
*newTokenizer = *Ufal::UDPipec::Model_newTokenizer; |
794
|
|
|
|
|
|
|
*tag = *Ufal::UDPipec::Model_tag; |
795
|
|
|
|
|
|
|
*parse = *Ufal::UDPipec::Model_parse; |
796
|
|
|
|
|
|
|
*DEFAULT = *Ufal::UDPipec::Model_DEFAULT; |
797
|
|
|
|
|
|
|
*TOKENIZER_NORMALIZED_SPACES = *Ufal::UDPipec::Model_TOKENIZER_NORMALIZED_SPACES; |
798
|
|
|
|
|
|
|
*TOKENIZER_PRESEGMENTED = *Ufal::UDPipec::Model_TOKENIZER_PRESEGMENTED; |
799
|
|
|
|
|
|
|
*TOKENIZER_RANGES = *Ufal::UDPipec::Model_TOKENIZER_RANGES; |
800
|
|
|
|
|
|
|
sub DISOWN { |
801
|
0
|
|
|
0
|
|
|
my $self = shift; |
802
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
803
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
804
|
|
|
|
|
|
|
} |
805
|
|
|
|
|
|
|
|
806
|
|
|
|
|
|
|
sub ACQUIRE { |
807
|
0
|
|
|
0
|
|
|
my $self = shift; |
808
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
809
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
810
|
|
|
|
|
|
|
} |
811
|
|
|
|
|
|
|
|
812
|
|
|
|
|
|
|
|
813
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Pipeline ############## |
814
|
|
|
|
|
|
|
|
815
|
|
|
|
|
|
|
package Ufal::UDPipe::Pipeline; |
816
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
817
|
2
|
|
|
2
|
|
14
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
842
|
|
818
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
819
|
|
|
|
|
|
|
%OWNER = (); |
820
|
|
|
|
|
|
|
%ITERATORS = (); |
821
|
|
|
|
|
|
|
sub new { |
822
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
823
|
0
|
|
|
|
|
|
my $self = Ufal::UDPipec::new_Pipeline(@_); |
824
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
825
|
|
|
|
|
|
|
} |
826
|
|
|
|
|
|
|
|
827
|
|
|
|
|
|
|
*setModel = *Ufal::UDPipec::Pipeline_setModel; |
828
|
|
|
|
|
|
|
*setInput = *Ufal::UDPipec::Pipeline_setInput; |
829
|
|
|
|
|
|
|
*setTagger = *Ufal::UDPipec::Pipeline_setTagger; |
830
|
|
|
|
|
|
|
*setParser = *Ufal::UDPipec::Pipeline_setParser; |
831
|
|
|
|
|
|
|
*setOutput = *Ufal::UDPipec::Pipeline_setOutput; |
832
|
|
|
|
|
|
|
*setImmediate = *Ufal::UDPipec::Pipeline_setImmediate; |
833
|
|
|
|
|
|
|
*setDocumentId = *Ufal::UDPipec::Pipeline_setDocumentId; |
834
|
|
|
|
|
|
|
*process = *Ufal::UDPipec::Pipeline_process; |
835
|
|
|
|
|
|
|
*DEFAULT = *Ufal::UDPipec::Pipeline_DEFAULT; |
836
|
|
|
|
|
|
|
*NONE = *Ufal::UDPipec::Pipeline_NONE; |
837
|
|
|
|
|
|
|
sub DESTROY { |
838
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
839
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
840
|
0
|
0
|
|
|
|
|
return unless defined $self; |
841
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
842
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
843
|
0
|
|
|
|
|
|
Ufal::UDPipec::delete_Pipeline($self); |
844
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
845
|
|
|
|
|
|
|
} |
846
|
|
|
|
|
|
|
} |
847
|
|
|
|
|
|
|
|
848
|
|
|
|
|
|
|
sub DISOWN { |
849
|
0
|
|
|
0
|
|
|
my $self = shift; |
850
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
851
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
852
|
|
|
|
|
|
|
} |
853
|
|
|
|
|
|
|
|
854
|
|
|
|
|
|
|
sub ACQUIRE { |
855
|
0
|
|
|
0
|
|
|
my $self = shift; |
856
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
857
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
858
|
|
|
|
|
|
|
} |
859
|
|
|
|
|
|
|
|
860
|
|
|
|
|
|
|
|
861
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Trainer ############## |
862
|
|
|
|
|
|
|
|
863
|
|
|
|
|
|
|
package Ufal::UDPipe::Trainer; |
864
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
865
|
2
|
|
|
2
|
|
14
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
739
|
|
866
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
867
|
|
|
|
|
|
|
%OWNER = (); |
868
|
|
|
|
|
|
|
%ITERATORS = (); |
869
|
|
|
|
|
|
|
*train = *Ufal::UDPipec::Trainer_train; |
870
|
|
|
|
|
|
|
*DEFAULT = *Ufal::UDPipec::Trainer_DEFAULT; |
871
|
|
|
|
|
|
|
*NONE = *Ufal::UDPipec::Trainer_NONE; |
872
|
|
|
|
|
|
|
sub new { |
873
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
874
|
0
|
|
|
|
|
|
my $self = Ufal::UDPipec::new_Trainer(@_); |
875
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
876
|
|
|
|
|
|
|
} |
877
|
|
|
|
|
|
|
|
878
|
|
|
|
|
|
|
sub DESTROY { |
879
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
880
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
881
|
0
|
0
|
|
|
|
|
return unless defined $self; |
882
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
883
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
884
|
0
|
|
|
|
|
|
Ufal::UDPipec::delete_Trainer($self); |
885
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
886
|
|
|
|
|
|
|
} |
887
|
|
|
|
|
|
|
} |
888
|
|
|
|
|
|
|
|
889
|
|
|
|
|
|
|
sub DISOWN { |
890
|
0
|
|
|
0
|
|
|
my $self = shift; |
891
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
892
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
893
|
|
|
|
|
|
|
} |
894
|
|
|
|
|
|
|
|
895
|
|
|
|
|
|
|
sub ACQUIRE { |
896
|
0
|
|
|
0
|
|
|
my $self = shift; |
897
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
898
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
899
|
|
|
|
|
|
|
} |
900
|
|
|
|
|
|
|
|
901
|
|
|
|
|
|
|
|
902
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Evaluator ############## |
903
|
|
|
|
|
|
|
|
904
|
|
|
|
|
|
|
package Ufal::UDPipe::Evaluator; |
905
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
906
|
2
|
|
|
2
|
|
14
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
815
|
|
907
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
908
|
|
|
|
|
|
|
%OWNER = (); |
909
|
|
|
|
|
|
|
%ITERATORS = (); |
910
|
|
|
|
|
|
|
sub new { |
911
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
912
|
0
|
|
|
|
|
|
my $self = Ufal::UDPipec::new_Evaluator(@_); |
913
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
914
|
|
|
|
|
|
|
} |
915
|
|
|
|
|
|
|
|
916
|
|
|
|
|
|
|
*setModel = *Ufal::UDPipec::Evaluator_setModel; |
917
|
|
|
|
|
|
|
*setTokenizer = *Ufal::UDPipec::Evaluator_setTokenizer; |
918
|
|
|
|
|
|
|
*setTagger = *Ufal::UDPipec::Evaluator_setTagger; |
919
|
|
|
|
|
|
|
*setParser = *Ufal::UDPipec::Evaluator_setParser; |
920
|
|
|
|
|
|
|
*evaluate = *Ufal::UDPipec::Evaluator_evaluate; |
921
|
|
|
|
|
|
|
*DEFAULT = *Ufal::UDPipec::Evaluator_DEFAULT; |
922
|
|
|
|
|
|
|
*NONE = *Ufal::UDPipec::Evaluator_NONE; |
923
|
|
|
|
|
|
|
sub DESTROY { |
924
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
925
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
926
|
0
|
0
|
|
|
|
|
return unless defined $self; |
927
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
928
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
929
|
0
|
|
|
|
|
|
Ufal::UDPipec::delete_Evaluator($self); |
930
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
931
|
|
|
|
|
|
|
} |
932
|
|
|
|
|
|
|
} |
933
|
|
|
|
|
|
|
|
934
|
|
|
|
|
|
|
sub DISOWN { |
935
|
0
|
|
|
0
|
|
|
my $self = shift; |
936
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
937
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
938
|
|
|
|
|
|
|
} |
939
|
|
|
|
|
|
|
|
940
|
|
|
|
|
|
|
sub ACQUIRE { |
941
|
0
|
|
|
0
|
|
|
my $self = shift; |
942
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
943
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
944
|
|
|
|
|
|
|
} |
945
|
|
|
|
|
|
|
|
946
|
|
|
|
|
|
|
|
947
|
|
|
|
|
|
|
############# Class : Ufal::UDPipe::Version ############## |
948
|
|
|
|
|
|
|
|
949
|
|
|
|
|
|
|
package Ufal::UDPipe::Version; |
950
|
|
|
|
|
|
|
our $VERSION = '1.3.0.1'; |
951
|
2
|
|
|
2
|
|
19
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1201
|
|
952
|
|
|
|
|
|
|
@ISA = qw( Ufal::UDPipe ); |
953
|
|
|
|
|
|
|
%OWNER = (); |
954
|
|
|
|
|
|
|
%ITERATORS = (); |
955
|
|
|
|
|
|
|
*swig_major_get = *Ufal::UDPipec::Version_major_get; |
956
|
|
|
|
|
|
|
*swig_major_set = *Ufal::UDPipec::Version_major_set; |
957
|
|
|
|
|
|
|
*swig_minor_get = *Ufal::UDPipec::Version_minor_get; |
958
|
|
|
|
|
|
|
*swig_minor_set = *Ufal::UDPipec::Version_minor_set; |
959
|
|
|
|
|
|
|
*swig_patch_get = *Ufal::UDPipec::Version_patch_get; |
960
|
|
|
|
|
|
|
*swig_patch_set = *Ufal::UDPipec::Version_patch_set; |
961
|
|
|
|
|
|
|
*swig_prerelease_get = *Ufal::UDPipec::Version_prerelease_get; |
962
|
|
|
|
|
|
|
*swig_prerelease_set = *Ufal::UDPipec::Version_prerelease_set; |
963
|
|
|
|
|
|
|
*current = *Ufal::UDPipec::Version_current; |
964
|
|
|
|
|
|
|
sub new { |
965
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
966
|
0
|
|
|
|
|
|
my $self = Ufal::UDPipec::new_Version(@_); |
967
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
968
|
|
|
|
|
|
|
} |
969
|
|
|
|
|
|
|
|
970
|
|
|
|
|
|
|
sub DESTROY { |
971
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
972
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
973
|
0
|
0
|
|
|
|
|
return unless defined $self; |
974
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
975
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
976
|
0
|
|
|
|
|
|
Ufal::UDPipec::delete_Version($self); |
977
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
978
|
|
|
|
|
|
|
} |
979
|
|
|
|
|
|
|
} |
980
|
|
|
|
|
|
|
|
981
|
|
|
|
|
|
|
sub DISOWN { |
982
|
0
|
|
|
0
|
|
|
my $self = shift; |
983
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
984
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
985
|
|
|
|
|
|
|
} |
986
|
|
|
|
|
|
|
|
987
|
|
|
|
|
|
|
sub ACQUIRE { |
988
|
0
|
|
|
0
|
|
|
my $self = shift; |
989
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
990
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
991
|
|
|
|
|
|
|
} |
992
|
|
|
|
|
|
|
|
993
|
|
|
|
|
|
|
|
994
|
|
|
|
|
|
|
# ------- VARIABLE STUBS -------- |
995
|
|
|
|
|
|
|
|
996
|
|
|
|
|
|
|
package Ufal::UDPipe; |
997
|
|
|
|
|
|
|
|
998
|
|
|
|
|
|
|
*Sentence_rootForm = *Ufal::UDPipec::Sentence_rootForm; |
999
|
|
|
|
|
|
|
*InputFormat_CONLLU_V1 = *Ufal::UDPipec::InputFormat_CONLLU_V1; |
1000
|
|
|
|
|
|
|
*InputFormat_CONLLU_V2 = *Ufal::UDPipec::InputFormat_CONLLU_V2; |
1001
|
|
|
|
|
|
|
*InputFormat_GENERIC_TOKENIZER_NORMALIZED_SPACES = *Ufal::UDPipec::InputFormat_GENERIC_TOKENIZER_NORMALIZED_SPACES; |
1002
|
|
|
|
|
|
|
*InputFormat_GENERIC_TOKENIZER_PRESEGMENTED = *Ufal::UDPipec::InputFormat_GENERIC_TOKENIZER_PRESEGMENTED; |
1003
|
|
|
|
|
|
|
*InputFormat_GENERIC_TOKENIZER_RANGES = *Ufal::UDPipec::InputFormat_GENERIC_TOKENIZER_RANGES; |
1004
|
|
|
|
|
|
|
*OutputFormat_CONLLU_V1 = *Ufal::UDPipec::OutputFormat_CONLLU_V1; |
1005
|
|
|
|
|
|
|
*OutputFormat_CONLLU_V2 = *Ufal::UDPipec::OutputFormat_CONLLU_V2; |
1006
|
|
|
|
|
|
|
*OutputFormat_HORIZONTAL_PARAGRAPHS = *Ufal::UDPipec::OutputFormat_HORIZONTAL_PARAGRAPHS; |
1007
|
|
|
|
|
|
|
*OutputFormat_PLAINTEXT_NORMALIZED_SPACES = *Ufal::UDPipec::OutputFormat_PLAINTEXT_NORMALIZED_SPACES; |
1008
|
|
|
|
|
|
|
*OutputFormat_VERTICAL_PARAGRAPHS = *Ufal::UDPipec::OutputFormat_VERTICAL_PARAGRAPHS; |
1009
|
|
|
|
|
|
|
*Model_DEFAULT = *Ufal::UDPipec::Model_DEFAULT; |
1010
|
|
|
|
|
|
|
*Model_TOKENIZER_NORMALIZED_SPACES = *Ufal::UDPipec::Model_TOKENIZER_NORMALIZED_SPACES; |
1011
|
|
|
|
|
|
|
*Model_TOKENIZER_PRESEGMENTED = *Ufal::UDPipec::Model_TOKENIZER_PRESEGMENTED; |
1012
|
|
|
|
|
|
|
*Model_TOKENIZER_RANGES = *Ufal::UDPipec::Model_TOKENIZER_RANGES; |
1013
|
|
|
|
|
|
|
*Pipeline_DEFAULT = *Ufal::UDPipec::Pipeline_DEFAULT; |
1014
|
|
|
|
|
|
|
*Pipeline_NONE = *Ufal::UDPipec::Pipeline_NONE; |
1015
|
|
|
|
|
|
|
*Trainer_DEFAULT = *Ufal::UDPipec::Trainer_DEFAULT; |
1016
|
|
|
|
|
|
|
*Trainer_NONE = *Ufal::UDPipec::Trainer_NONE; |
1017
|
|
|
|
|
|
|
*Evaluator_DEFAULT = *Ufal::UDPipec::Evaluator_DEFAULT; |
1018
|
|
|
|
|
|
|
*Evaluator_NONE = *Ufal::UDPipec::Evaluator_NONE; |
1019
|
|
|
|
|
|
|
1; |