Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37743455
en ru br
Репозитории ALT

Группа :: Разработка/Perl
Пакет: perl-Lingua-EN-Tagger

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: perl-Lingua-EN-Tagger-0.23-alt-nstore.patch
Скачать


--- Lingua-EN-Tagger-0.23/Makefile.PL	2012-05-28 16:24:29.000000000 +0300
+++ Lingua-EN-Tagger-0.23/Makefile.PL	2012-10-03 21:47:47.000000000 +0300
@@ -44,8 +44,8 @@
                 _load_tags( File::Spec->catfile( $lex_dir, 'tags.yml' ) );
                 _load_words( File::Spec->catfile( $lex_dir, 'words.yml' ) );
                 _load_words( File::Spec->catfile( $lex_dir, 'unknown.yml' ) );
-                store \%_LEXICON, $word_path;
-                store \%_HMM, $tag_path;
+		Storable::nstore \%_LEXICON, $word_path;
+		Storable::nstore \%_HMM, $tag_path;
         }
 
         if( -f $word_path and -f $tag_path ){
--- Lingua-EN-Tagger-0.23/Tagger.pm	2012-10-01 17:47:22.000000000 +0300
+++ Lingua-EN-Tagger-0.23/Tagger.pm	2012-10-03 21:48:53.000000000 +0300
@@ -854,8 +854,8 @@
     $self->_load_tags($self->{'tag_lex'});
     $self->_load_words($self->{'word_lex'});
     $self->_load_words($self->{'unknown_lex'});
-    store \%_LEXICON, $self->{'word_path'};
-    store \%_HMM, $self->{'tag_path'};
+    Storable::nstore \%_LEXICON, $self->{'word_path'};
+    Storable::nstore \%_HMM, $self->{'tag_path'};
 }
 
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin