| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # This file was automatically generated by SWIG (http://www.swig.org). | 
| 2 |  |  |  |  |  |  | # Version 3.0.8 | 
| 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.1.2.1'; | 
| 9 | 3 |  |  | 3 |  | 42971 | use base qw(Exporter); | 
|  | 3 |  |  |  |  | 8 |  | 
|  | 3 |  |  |  |  | 278 |  | 
| 10 | 3 |  |  | 3 |  | 17 | use base qw(DynaLoader); | 
|  | 3 |  |  |  |  | 6 |  | 
|  | 3 |  |  |  |  | 824 |  | 
| 11 |  |  |  |  |  |  | package Ufal::NameTagc; | 
| 12 |  |  |  |  |  |  | our $VERSION = '1.1.2.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 |  |  | my ($classname,$obj) = @_; | 
| 23 | 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 |  |  | my ($self,$field) = @_; | 
| 34 | 0 |  |  |  |  |  | my $member_func = "swig_${field}_get"; | 
| 35 | 0 |  |  |  |  |  | $self->$member_func(); | 
| 36 |  |  |  |  |  |  | } | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | sub STORE { | 
| 39 | 0 |  |  | 0 |  |  | my ($self,$field,$newval) = @_; | 
| 40 | 0 |  |  |  |  |  | my $member_func = "swig_${field}_set"; | 
| 41 | 0 |  |  |  |  |  | $self->$member_func($newval); | 
| 42 |  |  |  |  |  |  | } | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | sub this { | 
| 45 | 0 |  |  | 0 |  |  | my $ptr = shift; | 
| 46 | 0 |  |  |  |  |  | return tied(%$ptr); | 
| 47 |  |  |  |  |  |  | } | 
| 48 |  |  |  |  |  |  |  | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | # ------- FUNCTION WRAPPERS -------- | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | package Ufal::NameTag; | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  |  | 
| 55 |  |  |  |  |  |  | ############# Class : Ufal::NameTag::Forms ############## | 
| 56 |  |  |  |  |  |  |  | 
| 57 |  |  |  |  |  |  | package Ufal::NameTag::Forms; | 
| 58 |  |  |  |  |  |  | our $VERSION = '1.1.2.1'; | 
| 59 | 3 |  |  | 3 |  | 20 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | 
|  | 3 |  |  |  |  | 6 |  | 
|  | 3 |  |  |  |  | 940 |  | 
| 60 |  |  |  |  |  |  | @ISA = qw( Ufal::NameTag ); | 
| 61 |  |  |  |  |  |  | %OWNER = (); | 
| 62 |  |  |  |  |  |  | %ITERATORS = (); | 
| 63 |  |  |  |  |  |  | sub new { | 
| 64 | 0 |  |  | 0 |  |  | my $pkg = shift; | 
| 65 | 0 |  |  |  |  |  | my $self = Ufal::NameTagc::new_Forms(@_); | 
| 66 | 0 | 0 |  |  |  |  | bless $self, $pkg if defined($self); | 
| 67 |  |  |  |  |  |  | } | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | *size = *Ufal::NameTagc::Forms_size; | 
| 70 |  |  |  |  |  |  | *empty = *Ufal::NameTagc::Forms_empty; | 
| 71 |  |  |  |  |  |  | *clear = *Ufal::NameTagc::Forms_clear; | 
| 72 |  |  |  |  |  |  | *push = *Ufal::NameTagc::Forms_push; | 
| 73 |  |  |  |  |  |  | *pop = *Ufal::NameTagc::Forms_pop; | 
| 74 |  |  |  |  |  |  | *get = *Ufal::NameTagc::Forms_get; | 
| 75 |  |  |  |  |  |  | *set = *Ufal::NameTagc::Forms_set; | 
| 76 |  |  |  |  |  |  | sub DESTROY { | 
| 77 | 0 | 0 |  | 0 |  |  | return unless $_[0]->isa('HASH'); | 
| 78 | 0 |  |  |  |  |  | my $self = tied(%{$_[0]}); | 
|  | 0 |  |  |  |  |  |  | 
| 79 | 0 | 0 |  |  |  |  | return unless defined $self; | 
| 80 | 0 |  |  |  |  |  | delete $ITERATORS{$self}; | 
| 81 | 0 | 0 |  |  |  |  | if (exists $OWNER{$self}) { | 
| 82 | 0 |  |  |  |  |  | Ufal::NameTagc::delete_Forms($self); | 
| 83 | 0 |  |  |  |  |  | delete $OWNER{$self}; | 
| 84 |  |  |  |  |  |  | } | 
| 85 |  |  |  |  |  |  | } | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | sub DISOWN { | 
| 88 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 89 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 90 | 0 |  |  |  |  |  | delete $OWNER{$ptr}; | 
| 91 |  |  |  |  |  |  | } | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | sub ACQUIRE { | 
| 94 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 95 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 96 | 0 |  |  |  |  |  | $OWNER{$ptr} = 1; | 
| 97 |  |  |  |  |  |  | } | 
| 98 |  |  |  |  |  |  |  | 
| 99 |  |  |  |  |  |  |  | 
| 100 |  |  |  |  |  |  | ############# Class : Ufal::NameTag::TokenRange ############## | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | package Ufal::NameTag::TokenRange; | 
| 103 |  |  |  |  |  |  | our $VERSION = '1.1.2.1'; | 
| 104 | 3 |  |  | 3 |  | 22 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | 
|  | 3 |  |  |  |  | 16 |  | 
|  | 3 |  |  |  |  | 705 |  | 
| 105 |  |  |  |  |  |  | @ISA = qw( Ufal::NameTag ); | 
| 106 |  |  |  |  |  |  | %OWNER = (); | 
| 107 |  |  |  |  |  |  | %ITERATORS = (); | 
| 108 |  |  |  |  |  |  | *swig_start_get = *Ufal::NameTagc::TokenRange_start_get; | 
| 109 |  |  |  |  |  |  | *swig_start_set = *Ufal::NameTagc::TokenRange_start_set; | 
| 110 |  |  |  |  |  |  | *swig_length_get = *Ufal::NameTagc::TokenRange_length_get; | 
| 111 |  |  |  |  |  |  | *swig_length_set = *Ufal::NameTagc::TokenRange_length_set; | 
| 112 |  |  |  |  |  |  | sub new { | 
| 113 | 0 |  |  | 0 |  |  | my $pkg = shift; | 
| 114 | 0 |  |  |  |  |  | my $self = Ufal::NameTagc::new_TokenRange(@_); | 
| 115 | 0 | 0 |  |  |  |  | bless $self, $pkg if defined($self); | 
| 116 |  |  |  |  |  |  | } | 
| 117 |  |  |  |  |  |  |  | 
| 118 |  |  |  |  |  |  | sub DESTROY { | 
| 119 | 0 | 0 |  | 0 |  |  | return unless $_[0]->isa('HASH'); | 
| 120 | 0 |  |  |  |  |  | my $self = tied(%{$_[0]}); | 
|  | 0 |  |  |  |  |  |  | 
| 121 | 0 | 0 |  |  |  |  | return unless defined $self; | 
| 122 | 0 |  |  |  |  |  | delete $ITERATORS{$self}; | 
| 123 | 0 | 0 |  |  |  |  | if (exists $OWNER{$self}) { | 
| 124 | 0 |  |  |  |  |  | Ufal::NameTagc::delete_TokenRange($self); | 
| 125 | 0 |  |  |  |  |  | delete $OWNER{$self}; | 
| 126 |  |  |  |  |  |  | } | 
| 127 |  |  |  |  |  |  | } | 
| 128 |  |  |  |  |  |  |  | 
| 129 |  |  |  |  |  |  | sub DISOWN { | 
| 130 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 131 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 132 | 0 |  |  |  |  |  | delete $OWNER{$ptr}; | 
| 133 |  |  |  |  |  |  | } | 
| 134 |  |  |  |  |  |  |  | 
| 135 |  |  |  |  |  |  | sub ACQUIRE { | 
| 136 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 137 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 138 | 0 |  |  |  |  |  | $OWNER{$ptr} = 1; | 
| 139 |  |  |  |  |  |  | } | 
| 140 |  |  |  |  |  |  |  | 
| 141 |  |  |  |  |  |  |  | 
| 142 |  |  |  |  |  |  | ############# Class : Ufal::NameTag::TokenRanges ############## | 
| 143 |  |  |  |  |  |  |  | 
| 144 |  |  |  |  |  |  | package Ufal::NameTag::TokenRanges; | 
| 145 |  |  |  |  |  |  | our $VERSION = '1.1.2.1'; | 
| 146 | 3 |  |  | 3 |  | 20 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | 
|  | 3 |  |  |  |  | 5 |  | 
|  | 3 |  |  |  |  | 853 |  | 
| 147 |  |  |  |  |  |  | @ISA = qw( Ufal::NameTag ); | 
| 148 |  |  |  |  |  |  | %OWNER = (); | 
| 149 |  |  |  |  |  |  | %ITERATORS = (); | 
| 150 |  |  |  |  |  |  | sub new { | 
| 151 | 0 |  |  | 0 |  |  | my $pkg = shift; | 
| 152 | 0 |  |  |  |  |  | my $self = Ufal::NameTagc::new_TokenRanges(@_); | 
| 153 | 0 | 0 |  |  |  |  | bless $self, $pkg if defined($self); | 
| 154 |  |  |  |  |  |  | } | 
| 155 |  |  |  |  |  |  |  | 
| 156 |  |  |  |  |  |  | *size = *Ufal::NameTagc::TokenRanges_size; | 
| 157 |  |  |  |  |  |  | *empty = *Ufal::NameTagc::TokenRanges_empty; | 
| 158 |  |  |  |  |  |  | *clear = *Ufal::NameTagc::TokenRanges_clear; | 
| 159 |  |  |  |  |  |  | *push = *Ufal::NameTagc::TokenRanges_push; | 
| 160 |  |  |  |  |  |  | *pop = *Ufal::NameTagc::TokenRanges_pop; | 
| 161 |  |  |  |  |  |  | *get = *Ufal::NameTagc::TokenRanges_get; | 
| 162 |  |  |  |  |  |  | *set = *Ufal::NameTagc::TokenRanges_set; | 
| 163 |  |  |  |  |  |  | sub DESTROY { | 
| 164 | 0 | 0 |  | 0 |  |  | return unless $_[0]->isa('HASH'); | 
| 165 | 0 |  |  |  |  |  | my $self = tied(%{$_[0]}); | 
|  | 0 |  |  |  |  |  |  | 
| 166 | 0 | 0 |  |  |  |  | return unless defined $self; | 
| 167 | 0 |  |  |  |  |  | delete $ITERATORS{$self}; | 
| 168 | 0 | 0 |  |  |  |  | if (exists $OWNER{$self}) { | 
| 169 | 0 |  |  |  |  |  | Ufal::NameTagc::delete_TokenRanges($self); | 
| 170 | 0 |  |  |  |  |  | delete $OWNER{$self}; | 
| 171 |  |  |  |  |  |  | } | 
| 172 |  |  |  |  |  |  | } | 
| 173 |  |  |  |  |  |  |  | 
| 174 |  |  |  |  |  |  | sub DISOWN { | 
| 175 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 176 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 177 | 0 |  |  |  |  |  | delete $OWNER{$ptr}; | 
| 178 |  |  |  |  |  |  | } | 
| 179 |  |  |  |  |  |  |  | 
| 180 |  |  |  |  |  |  | sub ACQUIRE { | 
| 181 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 182 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 183 | 0 |  |  |  |  |  | $OWNER{$ptr} = 1; | 
| 184 |  |  |  |  |  |  | } | 
| 185 |  |  |  |  |  |  |  | 
| 186 |  |  |  |  |  |  |  | 
| 187 |  |  |  |  |  |  | ############# Class : Ufal::NameTag::NamedEntity ############## | 
| 188 |  |  |  |  |  |  |  | 
| 189 |  |  |  |  |  |  | package Ufal::NameTag::NamedEntity; | 
| 190 |  |  |  |  |  |  | our $VERSION = '1.1.2.1'; | 
| 191 | 3 |  |  | 3 |  | 18 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | 
|  | 3 |  |  |  |  | 5 |  | 
|  | 3 |  |  |  |  | 754 |  | 
| 192 |  |  |  |  |  |  | @ISA = qw( Ufal::NameTag ); | 
| 193 |  |  |  |  |  |  | %OWNER = (); | 
| 194 |  |  |  |  |  |  | %ITERATORS = (); | 
| 195 |  |  |  |  |  |  | *swig_start_get = *Ufal::NameTagc::NamedEntity_start_get; | 
| 196 |  |  |  |  |  |  | *swig_start_set = *Ufal::NameTagc::NamedEntity_start_set; | 
| 197 |  |  |  |  |  |  | *swig_length_get = *Ufal::NameTagc::NamedEntity_length_get; | 
| 198 |  |  |  |  |  |  | *swig_length_set = *Ufal::NameTagc::NamedEntity_length_set; | 
| 199 |  |  |  |  |  |  | *swig_type_get = *Ufal::NameTagc::NamedEntity_type_get; | 
| 200 |  |  |  |  |  |  | *swig_type_set = *Ufal::NameTagc::NamedEntity_type_set; | 
| 201 |  |  |  |  |  |  | sub new { | 
| 202 | 0 |  |  | 0 |  |  | my $pkg = shift; | 
| 203 | 0 |  |  |  |  |  | my $self = Ufal::NameTagc::new_NamedEntity(@_); | 
| 204 | 0 | 0 |  |  |  |  | bless $self, $pkg if defined($self); | 
| 205 |  |  |  |  |  |  | } | 
| 206 |  |  |  |  |  |  |  | 
| 207 |  |  |  |  |  |  | sub DESTROY { | 
| 208 | 0 | 0 |  | 0 |  |  | return unless $_[0]->isa('HASH'); | 
| 209 | 0 |  |  |  |  |  | my $self = tied(%{$_[0]}); | 
|  | 0 |  |  |  |  |  |  | 
| 210 | 0 | 0 |  |  |  |  | return unless defined $self; | 
| 211 | 0 |  |  |  |  |  | delete $ITERATORS{$self}; | 
| 212 | 0 | 0 |  |  |  |  | if (exists $OWNER{$self}) { | 
| 213 | 0 |  |  |  |  |  | Ufal::NameTagc::delete_NamedEntity($self); | 
| 214 | 0 |  |  |  |  |  | delete $OWNER{$self}; | 
| 215 |  |  |  |  |  |  | } | 
| 216 |  |  |  |  |  |  | } | 
| 217 |  |  |  |  |  |  |  | 
| 218 |  |  |  |  |  |  | sub DISOWN { | 
| 219 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 220 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 221 | 0 |  |  |  |  |  | delete $OWNER{$ptr}; | 
| 222 |  |  |  |  |  |  | } | 
| 223 |  |  |  |  |  |  |  | 
| 224 |  |  |  |  |  |  | sub ACQUIRE { | 
| 225 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 226 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 227 | 0 |  |  |  |  |  | $OWNER{$ptr} = 1; | 
| 228 |  |  |  |  |  |  | } | 
| 229 |  |  |  |  |  |  |  | 
| 230 |  |  |  |  |  |  |  | 
| 231 |  |  |  |  |  |  | ############# Class : Ufal::NameTag::NamedEntities ############## | 
| 232 |  |  |  |  |  |  |  | 
| 233 |  |  |  |  |  |  | package Ufal::NameTag::NamedEntities; | 
| 234 |  |  |  |  |  |  | our $VERSION = '1.1.2.1'; | 
| 235 | 3 |  |  | 3 |  | 22 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | 
|  | 3 |  |  |  |  | 5 |  | 
|  | 3 |  |  |  |  | 800 |  | 
| 236 |  |  |  |  |  |  | @ISA = qw( Ufal::NameTag ); | 
| 237 |  |  |  |  |  |  | %OWNER = (); | 
| 238 |  |  |  |  |  |  | %ITERATORS = (); | 
| 239 |  |  |  |  |  |  | sub new { | 
| 240 | 0 |  |  | 0 |  |  | my $pkg = shift; | 
| 241 | 0 |  |  |  |  |  | my $self = Ufal::NameTagc::new_NamedEntities(@_); | 
| 242 | 0 | 0 |  |  |  |  | bless $self, $pkg if defined($self); | 
| 243 |  |  |  |  |  |  | } | 
| 244 |  |  |  |  |  |  |  | 
| 245 |  |  |  |  |  |  | *size = *Ufal::NameTagc::NamedEntities_size; | 
| 246 |  |  |  |  |  |  | *empty = *Ufal::NameTagc::NamedEntities_empty; | 
| 247 |  |  |  |  |  |  | *clear = *Ufal::NameTagc::NamedEntities_clear; | 
| 248 |  |  |  |  |  |  | *push = *Ufal::NameTagc::NamedEntities_push; | 
| 249 |  |  |  |  |  |  | *pop = *Ufal::NameTagc::NamedEntities_pop; | 
| 250 |  |  |  |  |  |  | *get = *Ufal::NameTagc::NamedEntities_get; | 
| 251 |  |  |  |  |  |  | *set = *Ufal::NameTagc::NamedEntities_set; | 
| 252 |  |  |  |  |  |  | sub DESTROY { | 
| 253 | 0 | 0 |  | 0 |  |  | return unless $_[0]->isa('HASH'); | 
| 254 | 0 |  |  |  |  |  | my $self = tied(%{$_[0]}); | 
|  | 0 |  |  |  |  |  |  | 
| 255 | 0 | 0 |  |  |  |  | return unless defined $self; | 
| 256 | 0 |  |  |  |  |  | delete $ITERATORS{$self}; | 
| 257 | 0 | 0 |  |  |  |  | if (exists $OWNER{$self}) { | 
| 258 | 0 |  |  |  |  |  | Ufal::NameTagc::delete_NamedEntities($self); | 
| 259 | 0 |  |  |  |  |  | delete $OWNER{$self}; | 
| 260 |  |  |  |  |  |  | } | 
| 261 |  |  |  |  |  |  | } | 
| 262 |  |  |  |  |  |  |  | 
| 263 |  |  |  |  |  |  | sub DISOWN { | 
| 264 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 265 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 266 | 0 |  |  |  |  |  | delete $OWNER{$ptr}; | 
| 267 |  |  |  |  |  |  | } | 
| 268 |  |  |  |  |  |  |  | 
| 269 |  |  |  |  |  |  | sub ACQUIRE { | 
| 270 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 271 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 272 | 0 |  |  |  |  |  | $OWNER{$ptr} = 1; | 
| 273 |  |  |  |  |  |  | } | 
| 274 |  |  |  |  |  |  |  | 
| 275 |  |  |  |  |  |  |  | 
| 276 |  |  |  |  |  |  | ############# Class : Ufal::NameTag::Version ############## | 
| 277 |  |  |  |  |  |  |  | 
| 278 |  |  |  |  |  |  | package Ufal::NameTag::Version; | 
| 279 |  |  |  |  |  |  | our $VERSION = '1.1.2.1'; | 
| 280 | 3 |  |  | 3 |  | 18 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | 
|  | 3 |  |  |  |  | 9 |  | 
|  | 3 |  |  |  |  | 860 |  | 
| 281 |  |  |  |  |  |  | @ISA = qw( Ufal::NameTag ); | 
| 282 |  |  |  |  |  |  | %OWNER = (); | 
| 283 |  |  |  |  |  |  | %ITERATORS = (); | 
| 284 |  |  |  |  |  |  | *swig_major_get = *Ufal::NameTagc::Version_major_get; | 
| 285 |  |  |  |  |  |  | *swig_major_set = *Ufal::NameTagc::Version_major_set; | 
| 286 |  |  |  |  |  |  | *swig_minor_get = *Ufal::NameTagc::Version_minor_get; | 
| 287 |  |  |  |  |  |  | *swig_minor_set = *Ufal::NameTagc::Version_minor_set; | 
| 288 |  |  |  |  |  |  | *swig_patch_get = *Ufal::NameTagc::Version_patch_get; | 
| 289 |  |  |  |  |  |  | *swig_patch_set = *Ufal::NameTagc::Version_patch_set; | 
| 290 |  |  |  |  |  |  | *swig_prerelease_get = *Ufal::NameTagc::Version_prerelease_get; | 
| 291 |  |  |  |  |  |  | *swig_prerelease_set = *Ufal::NameTagc::Version_prerelease_set; | 
| 292 |  |  |  |  |  |  | *current = *Ufal::NameTagc::Version_current; | 
| 293 |  |  |  |  |  |  | sub new { | 
| 294 | 0 |  |  | 0 |  |  | my $pkg = shift; | 
| 295 | 0 |  |  |  |  |  | my $self = Ufal::NameTagc::new_Version(@_); | 
| 296 | 0 | 0 |  |  |  |  | bless $self, $pkg if defined($self); | 
| 297 |  |  |  |  |  |  | } | 
| 298 |  |  |  |  |  |  |  | 
| 299 |  |  |  |  |  |  | sub DESTROY { | 
| 300 | 0 | 0 |  | 0 |  |  | return unless $_[0]->isa('HASH'); | 
| 301 | 0 |  |  |  |  |  | my $self = tied(%{$_[0]}); | 
|  | 0 |  |  |  |  |  |  | 
| 302 | 0 | 0 |  |  |  |  | return unless defined $self; | 
| 303 | 0 |  |  |  |  |  | delete $ITERATORS{$self}; | 
| 304 | 0 | 0 |  |  |  |  | if (exists $OWNER{$self}) { | 
| 305 | 0 |  |  |  |  |  | Ufal::NameTagc::delete_Version($self); | 
| 306 | 0 |  |  |  |  |  | delete $OWNER{$self}; | 
| 307 |  |  |  |  |  |  | } | 
| 308 |  |  |  |  |  |  | } | 
| 309 |  |  |  |  |  |  |  | 
| 310 |  |  |  |  |  |  | sub DISOWN { | 
| 311 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 312 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 313 | 0 |  |  |  |  |  | delete $OWNER{$ptr}; | 
| 314 |  |  |  |  |  |  | } | 
| 315 |  |  |  |  |  |  |  | 
| 316 |  |  |  |  |  |  | sub ACQUIRE { | 
| 317 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 318 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 319 | 0 |  |  |  |  |  | $OWNER{$ptr} = 1; | 
| 320 |  |  |  |  |  |  | } | 
| 321 |  |  |  |  |  |  |  | 
| 322 |  |  |  |  |  |  |  | 
| 323 |  |  |  |  |  |  | ############# Class : Ufal::NameTag::Tokenizer ############## | 
| 324 |  |  |  |  |  |  |  | 
| 325 |  |  |  |  |  |  | package Ufal::NameTag::Tokenizer; | 
| 326 |  |  |  |  |  |  | our $VERSION = '1.1.2.1'; | 
| 327 | 3 |  |  | 3 |  | 19 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | 
|  | 3 |  |  |  |  | 6 |  | 
|  | 3 |  |  |  |  | 688 |  | 
| 328 |  |  |  |  |  |  | @ISA = qw( Ufal::NameTag ); | 
| 329 |  |  |  |  |  |  | %OWNER = (); | 
| 330 |  |  |  |  |  |  | %ITERATORS = (); | 
| 331 |  |  |  |  |  |  | sub DESTROY { | 
| 332 | 0 | 0 |  | 0 |  |  | return unless $_[0]->isa('HASH'); | 
| 333 | 0 |  |  |  |  |  | my $self = tied(%{$_[0]}); | 
|  | 0 |  |  |  |  |  |  | 
| 334 | 0 | 0 |  |  |  |  | return unless defined $self; | 
| 335 | 0 |  |  |  |  |  | delete $ITERATORS{$self}; | 
| 336 | 0 | 0 |  |  |  |  | if (exists $OWNER{$self}) { | 
| 337 | 0 |  |  |  |  |  | Ufal::NameTagc::delete_Tokenizer($self); | 
| 338 | 0 |  |  |  |  |  | delete $OWNER{$self}; | 
| 339 |  |  |  |  |  |  | } | 
| 340 |  |  |  |  |  |  | } | 
| 341 |  |  |  |  |  |  |  | 
| 342 |  |  |  |  |  |  | *setText = *Ufal::NameTagc::Tokenizer_setText; | 
| 343 |  |  |  |  |  |  | *nextSentence = *Ufal::NameTagc::Tokenizer_nextSentence; | 
| 344 |  |  |  |  |  |  | *newVerticalTokenizer = *Ufal::NameTagc::Tokenizer_newVerticalTokenizer; | 
| 345 |  |  |  |  |  |  | sub DISOWN { | 
| 346 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 347 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 348 | 0 |  |  |  |  |  | delete $OWNER{$ptr}; | 
| 349 |  |  |  |  |  |  | } | 
| 350 |  |  |  |  |  |  |  | 
| 351 |  |  |  |  |  |  | sub ACQUIRE { | 
| 352 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 353 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 354 | 0 |  |  |  |  |  | $OWNER{$ptr} = 1; | 
| 355 |  |  |  |  |  |  | } | 
| 356 |  |  |  |  |  |  |  | 
| 357 |  |  |  |  |  |  |  | 
| 358 |  |  |  |  |  |  | ############# Class : Ufal::NameTag::Ner ############## | 
| 359 |  |  |  |  |  |  |  | 
| 360 |  |  |  |  |  |  | package Ufal::NameTag::Ner; | 
| 361 |  |  |  |  |  |  | our $VERSION = '1.1.2.1'; | 
| 362 | 3 |  |  | 3 |  | 41 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | 
|  | 3 |  |  |  |  | 9 |  | 
|  | 3 |  |  |  |  | 872 |  | 
| 363 |  |  |  |  |  |  | @ISA = qw( Ufal::NameTag ); | 
| 364 |  |  |  |  |  |  | %OWNER = (); | 
| 365 |  |  |  |  |  |  | %ITERATORS = (); | 
| 366 |  |  |  |  |  |  | sub DESTROY { | 
| 367 | 0 | 0 |  | 0 |  |  | return unless $_[0]->isa('HASH'); | 
| 368 | 0 |  |  |  |  |  | my $self = tied(%{$_[0]}); | 
|  | 0 |  |  |  |  |  |  | 
| 369 | 0 | 0 |  |  |  |  | return unless defined $self; | 
| 370 | 0 |  |  |  |  |  | delete $ITERATORS{$self}; | 
| 371 | 0 | 0 |  |  |  |  | if (exists $OWNER{$self}) { | 
| 372 | 0 |  |  |  |  |  | Ufal::NameTagc::delete_Ner($self); | 
| 373 | 0 |  |  |  |  |  | delete $OWNER{$self}; | 
| 374 |  |  |  |  |  |  | } | 
| 375 |  |  |  |  |  |  | } | 
| 376 |  |  |  |  |  |  |  | 
| 377 |  |  |  |  |  |  | *load = *Ufal::NameTagc::Ner_load; | 
| 378 |  |  |  |  |  |  | *recognize = *Ufal::NameTagc::Ner_recognize; | 
| 379 |  |  |  |  |  |  | *newTokenizer = *Ufal::NameTagc::Ner_newTokenizer; | 
| 380 |  |  |  |  |  |  | sub DISOWN { | 
| 381 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 382 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 383 | 0 |  |  |  |  |  | delete $OWNER{$ptr}; | 
| 384 |  |  |  |  |  |  | } | 
| 385 |  |  |  |  |  |  |  | 
| 386 |  |  |  |  |  |  | sub ACQUIRE { | 
| 387 | 0 |  |  | 0 |  |  | my $self = shift; | 
| 388 | 0 |  |  |  |  |  | my $ptr = tied(%$self); | 
| 389 | 0 |  |  |  |  |  | $OWNER{$ptr} = 1; | 
| 390 |  |  |  |  |  |  | } | 
| 391 |  |  |  |  |  |  |  | 
| 392 |  |  |  |  |  |  |  | 
| 393 |  |  |  |  |  |  | # ------- VARIABLE STUBS -------- | 
| 394 |  |  |  |  |  |  |  | 
| 395 |  |  |  |  |  |  | package Ufal::NameTag; | 
| 396 |  |  |  |  |  |  |  | 
| 397 |  |  |  |  |  |  | 1; |