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::NameTag; |
8
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
9
|
3
|
|
|
3
|
|
139158
|
use base qw(Exporter); |
|
3
|
|
|
|
|
21
|
|
|
3
|
|
|
|
|
384
|
|
10
|
3
|
|
|
3
|
|
22
|
use base qw(DynaLoader); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
1017
|
|
11
|
|
|
|
|
|
|
package Ufal::NameTagc; |
12
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
13
|
|
|
|
|
|
|
bootstrap Ufal::NameTag; |
14
|
|
|
|
|
|
|
package Ufal::NameTag; |
15
|
|
|
|
|
|
|
@EXPORT = qw(); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# ---------- BASE METHODS ------------- |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
package Ufal::NameTag; |
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
|
9
|
|
|
9
|
|
916
|
my ($self,$field) = @_; |
34
|
9
|
|
|
|
|
19
|
my $member_func = "swig_${field}_get"; |
35
|
9
|
|
|
|
|
68
|
$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::NameTag; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
############# Class : Ufal::NameTag::Ints ############## |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
package Ufal::NameTag::Ints; |
58
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
59
|
3
|
|
|
3
|
|
24
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
1251
|
|
60
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
61
|
|
|
|
|
|
|
%OWNER = (); |
62
|
|
|
|
|
|
|
%ITERATORS = (); |
63
|
|
|
|
|
|
|
sub new { |
64
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
65
|
0
|
|
|
|
|
0
|
my $self = Ufal::NameTagc::new_Ints(@_); |
66
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
*size = *Ufal::NameTagc::Ints_size; |
70
|
|
|
|
|
|
|
*empty = *Ufal::NameTagc::Ints_empty; |
71
|
|
|
|
|
|
|
*clear = *Ufal::NameTagc::Ints_clear; |
72
|
|
|
|
|
|
|
*push = *Ufal::NameTagc::Ints_push; |
73
|
|
|
|
|
|
|
*pop = *Ufal::NameTagc::Ints_pop; |
74
|
|
|
|
|
|
|
*get = *Ufal::NameTagc::Ints_get; |
75
|
|
|
|
|
|
|
*set = *Ufal::NameTagc::Ints_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::NameTagc::delete_Ints($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::NameTag::Forms ############## |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
package Ufal::NameTag::Forms; |
103
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
104
|
3
|
|
|
3
|
|
24
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
1010
|
|
105
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
106
|
|
|
|
|
|
|
%OWNER = (); |
107
|
|
|
|
|
|
|
%ITERATORS = (); |
108
|
|
|
|
|
|
|
sub new { |
109
|
3
|
|
|
3
|
|
29608
|
my $pkg = shift; |
110
|
3
|
|
|
|
|
54
|
my $self = Ufal::NameTagc::new_Forms(@_); |
111
|
3
|
50
|
|
|
|
31
|
bless $self, $pkg if defined($self); |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
*size = *Ufal::NameTagc::Forms_size; |
115
|
|
|
|
|
|
|
*empty = *Ufal::NameTagc::Forms_empty; |
116
|
|
|
|
|
|
|
*clear = *Ufal::NameTagc::Forms_clear; |
117
|
|
|
|
|
|
|
*push = *Ufal::NameTagc::Forms_push; |
118
|
|
|
|
|
|
|
*pop = *Ufal::NameTagc::Forms_pop; |
119
|
|
|
|
|
|
|
*get = *Ufal::NameTagc::Forms_get; |
120
|
|
|
|
|
|
|
*set = *Ufal::NameTagc::Forms_set; |
121
|
|
|
|
|
|
|
sub DESTROY { |
122
|
6
|
100
|
|
6
|
|
2549
|
return unless $_[0]->isa('HASH'); |
123
|
3
|
|
|
|
|
8
|
my $self = tied(%{$_[0]}); |
|
3
|
|
|
|
|
8
|
|
124
|
3
|
50
|
|
|
|
7
|
return unless defined $self; |
125
|
3
|
|
|
|
|
9
|
delete $ITERATORS{$self}; |
126
|
3
|
50
|
|
|
|
22
|
if (exists $OWNER{$self}) { |
127
|
0
|
|
|
|
|
0
|
Ufal::NameTagc::delete_Forms($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::NameTag::TokenRange ############## |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
package Ufal::NameTag::TokenRange; |
148
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
149
|
3
|
|
|
3
|
|
21
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
1225
|
|
150
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
151
|
|
|
|
|
|
|
%OWNER = (); |
152
|
|
|
|
|
|
|
%ITERATORS = (); |
153
|
|
|
|
|
|
|
*swig_start_get = *Ufal::NameTagc::TokenRange_start_get; |
154
|
|
|
|
|
|
|
*swig_start_set = *Ufal::NameTagc::TokenRange_start_set; |
155
|
|
|
|
|
|
|
*swig_length_get = *Ufal::NameTagc::TokenRange_length_get; |
156
|
|
|
|
|
|
|
*swig_length_set = *Ufal::NameTagc::TokenRange_length_set; |
157
|
|
|
|
|
|
|
sub new { |
158
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
159
|
0
|
|
|
|
|
0
|
my $self = Ufal::NameTagc::new_TokenRange(@_); |
160
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
161
|
|
|
|
|
|
|
} |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
sub DESTROY { |
164
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
165
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
166
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
167
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
168
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
169
|
0
|
|
|
|
|
0
|
Ufal::NameTagc::delete_TokenRange($self); |
170
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
171
|
|
|
|
|
|
|
} |
172
|
|
|
|
|
|
|
} |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
sub DISOWN { |
175
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
176
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
177
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
178
|
|
|
|
|
|
|
} |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
sub ACQUIRE { |
181
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
182
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
183
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
184
|
|
|
|
|
|
|
} |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
############# Class : Ufal::NameTag::TokenRanges ############## |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
package Ufal::NameTag::TokenRanges; |
190
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
191
|
3
|
|
|
3
|
|
22
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
1143
|
|
192
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
193
|
|
|
|
|
|
|
%OWNER = (); |
194
|
|
|
|
|
|
|
%ITERATORS = (); |
195
|
|
|
|
|
|
|
sub new { |
196
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
197
|
0
|
|
|
|
|
0
|
my $self = Ufal::NameTagc::new_TokenRanges(@_); |
198
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
199
|
|
|
|
|
|
|
} |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
*size = *Ufal::NameTagc::TokenRanges_size; |
202
|
|
|
|
|
|
|
*empty = *Ufal::NameTagc::TokenRanges_empty; |
203
|
|
|
|
|
|
|
*clear = *Ufal::NameTagc::TokenRanges_clear; |
204
|
|
|
|
|
|
|
*push = *Ufal::NameTagc::TokenRanges_push; |
205
|
|
|
|
|
|
|
*pop = *Ufal::NameTagc::TokenRanges_pop; |
206
|
|
|
|
|
|
|
*get = *Ufal::NameTagc::TokenRanges_get; |
207
|
|
|
|
|
|
|
*set = *Ufal::NameTagc::TokenRanges_set; |
208
|
|
|
|
|
|
|
sub DESTROY { |
209
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
210
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
211
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
212
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
213
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
214
|
0
|
|
|
|
|
0
|
Ufal::NameTagc::delete_TokenRanges($self); |
215
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
216
|
|
|
|
|
|
|
} |
217
|
|
|
|
|
|
|
} |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
sub DISOWN { |
220
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
221
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
222
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
223
|
|
|
|
|
|
|
} |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
sub ACQUIRE { |
226
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
227
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
228
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
229
|
|
|
|
|
|
|
} |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
############# Class : Ufal::NameTag::NamedEntity ############## |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
package Ufal::NameTag::NamedEntity; |
235
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
236
|
3
|
|
|
3
|
|
32
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
1072
|
|
237
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
238
|
|
|
|
|
|
|
%OWNER = (); |
239
|
|
|
|
|
|
|
%ITERATORS = (); |
240
|
|
|
|
|
|
|
*swig_start_get = *Ufal::NameTagc::NamedEntity_start_get; |
241
|
|
|
|
|
|
|
*swig_start_set = *Ufal::NameTagc::NamedEntity_start_set; |
242
|
|
|
|
|
|
|
*swig_length_get = *Ufal::NameTagc::NamedEntity_length_get; |
243
|
|
|
|
|
|
|
*swig_length_set = *Ufal::NameTagc::NamedEntity_length_set; |
244
|
|
|
|
|
|
|
*swig_type_get = *Ufal::NameTagc::NamedEntity_type_get; |
245
|
|
|
|
|
|
|
*swig_type_set = *Ufal::NameTagc::NamedEntity_type_set; |
246
|
|
|
|
|
|
|
sub new { |
247
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
248
|
0
|
|
|
|
|
0
|
my $self = Ufal::NameTagc::new_NamedEntity(@_); |
249
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
250
|
|
|
|
|
|
|
} |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
sub DESTROY { |
253
|
18
|
100
|
|
18
|
|
86
|
return unless $_[0]->isa('HASH'); |
254
|
9
|
|
|
|
|
12
|
my $self = tied(%{$_[0]}); |
|
9
|
|
|
|
|
18
|
|
255
|
9
|
50
|
|
|
|
17
|
return unless defined $self; |
256
|
9
|
|
|
|
|
17
|
delete $ITERATORS{$self}; |
257
|
9
|
50
|
|
|
|
29
|
if (exists $OWNER{$self}) { |
258
|
0
|
|
|
|
|
0
|
Ufal::NameTagc::delete_NamedEntity($self); |
259
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
260
|
|
|
|
|
|
|
} |
261
|
|
|
|
|
|
|
} |
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
sub DISOWN { |
264
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
265
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
266
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
267
|
|
|
|
|
|
|
} |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
sub ACQUIRE { |
270
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
271
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
272
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
273
|
|
|
|
|
|
|
} |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
############# Class : Ufal::NameTag::NamedEntities ############## |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
package Ufal::NameTag::NamedEntities; |
279
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
280
|
3
|
|
|
3
|
|
21
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
1087
|
|
281
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
282
|
|
|
|
|
|
|
%OWNER = (); |
283
|
|
|
|
|
|
|
%ITERATORS = (); |
284
|
|
|
|
|
|
|
sub new { |
285
|
2
|
|
|
2
|
|
13
|
my $pkg = shift; |
286
|
2
|
|
|
|
|
24
|
my $self = Ufal::NameTagc::new_NamedEntities(@_); |
287
|
2
|
50
|
|
|
|
12
|
bless $self, $pkg if defined($self); |
288
|
|
|
|
|
|
|
} |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
*size = *Ufal::NameTagc::NamedEntities_size; |
291
|
|
|
|
|
|
|
*empty = *Ufal::NameTagc::NamedEntities_empty; |
292
|
|
|
|
|
|
|
*clear = *Ufal::NameTagc::NamedEntities_clear; |
293
|
|
|
|
|
|
|
*push = *Ufal::NameTagc::NamedEntities_push; |
294
|
|
|
|
|
|
|
*pop = *Ufal::NameTagc::NamedEntities_pop; |
295
|
|
|
|
|
|
|
*get = *Ufal::NameTagc::NamedEntities_get; |
296
|
|
|
|
|
|
|
*set = *Ufal::NameTagc::NamedEntities_set; |
297
|
|
|
|
|
|
|
sub DESTROY { |
298
|
4
|
100
|
|
4
|
|
582
|
return unless $_[0]->isa('HASH'); |
299
|
2
|
|
|
|
|
8
|
my $self = tied(%{$_[0]}); |
|
2
|
|
|
|
|
6
|
|
300
|
2
|
50
|
|
|
|
9
|
return unless defined $self; |
301
|
2
|
|
|
|
|
5
|
delete $ITERATORS{$self}; |
302
|
2
|
50
|
|
|
|
9
|
if (exists $OWNER{$self}) { |
303
|
0
|
|
|
|
|
0
|
Ufal::NameTagc::delete_NamedEntities($self); |
304
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
305
|
|
|
|
|
|
|
} |
306
|
|
|
|
|
|
|
} |
307
|
|
|
|
|
|
|
|
308
|
|
|
|
|
|
|
sub DISOWN { |
309
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
310
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
311
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
312
|
|
|
|
|
|
|
} |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
sub ACQUIRE { |
315
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
316
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
317
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
318
|
|
|
|
|
|
|
} |
319
|
|
|
|
|
|
|
|
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
############# Class : Ufal::NameTag::Version ############## |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
package Ufal::NameTag::Version; |
324
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
325
|
3
|
|
|
3
|
|
22
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
1159
|
|
326
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
327
|
|
|
|
|
|
|
%OWNER = (); |
328
|
|
|
|
|
|
|
%ITERATORS = (); |
329
|
|
|
|
|
|
|
*swig_major_get = *Ufal::NameTagc::Version_major_get; |
330
|
|
|
|
|
|
|
*swig_major_set = *Ufal::NameTagc::Version_major_set; |
331
|
|
|
|
|
|
|
*swig_minor_get = *Ufal::NameTagc::Version_minor_get; |
332
|
|
|
|
|
|
|
*swig_minor_set = *Ufal::NameTagc::Version_minor_set; |
333
|
|
|
|
|
|
|
*swig_patch_get = *Ufal::NameTagc::Version_patch_get; |
334
|
|
|
|
|
|
|
*swig_patch_set = *Ufal::NameTagc::Version_patch_set; |
335
|
|
|
|
|
|
|
*swig_prerelease_get = *Ufal::NameTagc::Version_prerelease_get; |
336
|
|
|
|
|
|
|
*swig_prerelease_set = *Ufal::NameTagc::Version_prerelease_set; |
337
|
|
|
|
|
|
|
*current = *Ufal::NameTagc::Version_current; |
338
|
|
|
|
|
|
|
sub new { |
339
|
0
|
|
|
0
|
|
0
|
my $pkg = shift; |
340
|
0
|
|
|
|
|
0
|
my $self = Ufal::NameTagc::new_Version(@_); |
341
|
0
|
0
|
|
|
|
0
|
bless $self, $pkg if defined($self); |
342
|
|
|
|
|
|
|
} |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
sub DESTROY { |
345
|
0
|
0
|
|
0
|
|
0
|
return unless $_[0]->isa('HASH'); |
346
|
0
|
|
|
|
|
0
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
0
|
|
347
|
0
|
0
|
|
|
|
0
|
return unless defined $self; |
348
|
0
|
|
|
|
|
0
|
delete $ITERATORS{$self}; |
349
|
0
|
0
|
|
|
|
0
|
if (exists $OWNER{$self}) { |
350
|
0
|
|
|
|
|
0
|
Ufal::NameTagc::delete_Version($self); |
351
|
0
|
|
|
|
|
0
|
delete $OWNER{$self}; |
352
|
|
|
|
|
|
|
} |
353
|
|
|
|
|
|
|
} |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
sub DISOWN { |
356
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
357
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
358
|
0
|
|
|
|
|
0
|
delete $OWNER{$ptr}; |
359
|
|
|
|
|
|
|
} |
360
|
|
|
|
|
|
|
|
361
|
|
|
|
|
|
|
sub ACQUIRE { |
362
|
0
|
|
|
0
|
|
0
|
my $self = shift; |
363
|
0
|
|
|
|
|
0
|
my $ptr = tied(%$self); |
364
|
0
|
|
|
|
|
0
|
$OWNER{$ptr} = 1; |
365
|
|
|
|
|
|
|
} |
366
|
|
|
|
|
|
|
|
367
|
|
|
|
|
|
|
|
368
|
|
|
|
|
|
|
############# Class : Ufal::NameTag::Tokenizer ############## |
369
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
package Ufal::NameTag::Tokenizer; |
371
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
372
|
3
|
|
|
3
|
|
22
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
895
|
|
373
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
374
|
|
|
|
|
|
|
%OWNER = (); |
375
|
|
|
|
|
|
|
%ITERATORS = (); |
376
|
|
|
|
|
|
|
sub DESTROY { |
377
|
6
|
100
|
|
6
|
|
333
|
return unless $_[0]->isa('HASH'); |
378
|
3
|
|
|
|
|
5
|
my $self = tied(%{$_[0]}); |
|
3
|
|
|
|
|
8
|
|
379
|
3
|
50
|
|
|
|
7
|
return unless defined $self; |
380
|
3
|
|
|
|
|
6
|
delete $ITERATORS{$self}; |
381
|
3
|
50
|
|
|
|
21
|
if (exists $OWNER{$self}) { |
382
|
3
|
|
|
|
|
31
|
Ufal::NameTagc::delete_Tokenizer($self); |
383
|
3
|
|
|
|
|
15
|
delete $OWNER{$self}; |
384
|
|
|
|
|
|
|
} |
385
|
|
|
|
|
|
|
} |
386
|
|
|
|
|
|
|
|
387
|
|
|
|
|
|
|
*setText = *Ufal::NameTagc::Tokenizer_setText; |
388
|
|
|
|
|
|
|
*nextSentence = *Ufal::NameTagc::Tokenizer_nextSentence; |
389
|
|
|
|
|
|
|
*newVerticalTokenizer = *Ufal::NameTagc::Tokenizer_newVerticalTokenizer; |
390
|
|
|
|
|
|
|
sub DISOWN { |
391
|
0
|
|
|
0
|
|
|
my $self = shift; |
392
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
393
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
394
|
|
|
|
|
|
|
} |
395
|
|
|
|
|
|
|
|
396
|
|
|
|
|
|
|
sub ACQUIRE { |
397
|
0
|
|
|
0
|
|
|
my $self = shift; |
398
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
399
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
400
|
|
|
|
|
|
|
} |
401
|
|
|
|
|
|
|
|
402
|
|
|
|
|
|
|
|
403
|
|
|
|
|
|
|
############# Class : Ufal::NameTag::Ner ############## |
404
|
|
|
|
|
|
|
|
405
|
|
|
|
|
|
|
package Ufal::NameTag::Ner; |
406
|
|
|
|
|
|
|
our $VERSION = '1.2.0.1'; |
407
|
3
|
|
|
3
|
|
22
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
943
|
|
408
|
|
|
|
|
|
|
@ISA = qw( Ufal::NameTag ); |
409
|
|
|
|
|
|
|
%OWNER = (); |
410
|
|
|
|
|
|
|
%ITERATORS = (); |
411
|
|
|
|
|
|
|
sub DESTROY { |
412
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
413
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
414
|
0
|
0
|
|
|
|
|
return unless defined $self; |
415
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
416
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
417
|
0
|
|
|
|
|
|
Ufal::NameTagc::delete_Ner($self); |
418
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
419
|
|
|
|
|
|
|
} |
420
|
|
|
|
|
|
|
} |
421
|
|
|
|
|
|
|
|
422
|
|
|
|
|
|
|
*load = *Ufal::NameTagc::Ner_load; |
423
|
|
|
|
|
|
|
*recognize = *Ufal::NameTagc::Ner_recognize; |
424
|
|
|
|
|
|
|
*entityTypes = *Ufal::NameTagc::Ner_entityTypes; |
425
|
|
|
|
|
|
|
*gazetteers = *Ufal::NameTagc::Ner_gazetteers; |
426
|
|
|
|
|
|
|
*newTokenizer = *Ufal::NameTagc::Ner_newTokenizer; |
427
|
|
|
|
|
|
|
sub DISOWN { |
428
|
0
|
|
|
0
|
|
|
my $self = shift; |
429
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
430
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
431
|
|
|
|
|
|
|
} |
432
|
|
|
|
|
|
|
|
433
|
|
|
|
|
|
|
sub ACQUIRE { |
434
|
0
|
|
|
0
|
|
|
my $self = shift; |
435
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
436
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
437
|
|
|
|
|
|
|
} |
438
|
|
|
|
|
|
|
|
439
|
|
|
|
|
|
|
|
440
|
|
|
|
|
|
|
# ------- VARIABLE STUBS -------- |
441
|
|
|
|
|
|
|
|
442
|
|
|
|
|
|
|
package Ufal::NameTag; |
443
|
|
|
|
|
|
|
|
444
|
|
|
|
|
|
|
1; |