2011-01-17 16:24:54 +00:00
|
|
|
#
|
2011-11-17 15:37:30 +00:00
|
|
|
# spec file for package perl-Lingua-EN-Tagger
|
2011-01-17 16:24:54 +00:00
|
|
|
#
|
2019-07-17 05:26:51 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-01-17 16:24:54 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-07-17 05:26:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-17 16:24:54 +00:00
|
|
|
#
|
|
|
|
|
2014-02-13 10:01:38 +00:00
|
|
|
|
2011-01-17 16:24:54 +00:00
|
|
|
Name: perl-Lingua-EN-Tagger
|
2019-07-17 05:26:51 +00:00
|
|
|
Version: 0.31
|
2012-01-13 15:36:55 +00:00
|
|
|
Release: 0
|
2019-07-17 05:26:51 +00:00
|
|
|
#Upstream: GPL-1.0-or-later
|
2011-01-17 16:24:54 +00:00
|
|
|
%define cpan_name Lingua-EN-Tagger
|
2015-04-16 08:13:08 +00:00
|
|
|
Summary: Part-of-speech tagger for English natural language processing
|
2018-05-20 13:08:58 +00:00
|
|
|
License: GPL-3.0-only
|
2011-01-17 16:24:54 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2019-07-17 05:26:51 +00:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
2018-05-20 13:08:58 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AC/ACOBURN/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 08:13:08 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:01 +02:00
|
|
|
Source100: README.md
|
2015-04-16 08:13:08 +00:00
|
|
|
# MANUAL
|
|
|
|
#BuildArch: noarch
|
2014-12-03 09:32:51 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-01-13 15:36:55 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-01-17 16:24:54 +00:00
|
|
|
BuildRequires: perl(HTML::Parser) >= 3.45
|
2014-12-03 09:32:51 +00:00
|
|
|
BuildRequires: perl(HTML::Tagset) >= 3.20
|
2011-01-17 16:24:54 +00:00
|
|
|
BuildRequires: perl(Lingua::Stem) >= 0.81
|
|
|
|
BuildRequires: perl(Memoize::ExpireLRU) >= 0.55
|
|
|
|
Requires: perl(HTML::Parser) >= 3.45
|
2014-12-03 09:32:51 +00:00
|
|
|
Requires: perl(HTML::Tagset) >= 3.20
|
2011-01-17 16:24:54 +00:00
|
|
|
Requires: perl(Lingua::Stem) >= 0.81
|
|
|
|
Requires: perl(Memoize::ExpireLRU) >= 0.55
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The module is a probability based, corpus-trained tagger that assigns POS
|
|
|
|
tags to English text based on a lookup dictionary and a set of probability
|
|
|
|
values. The tagger assigns appropriate tags based on conditional
|
|
|
|
probabilities - it examines the preceding tag to determine the appropriate
|
|
|
|
tag for the current word. Unknown words are classified according to word
|
|
|
|
morphology or can be set to be treated as nouns or other parts of speech.
|
|
|
|
|
|
|
|
The tagger also extracts as many nouns and noun phrases as it can, using a
|
|
|
|
set of regular expressions.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2019-07-17 05:26:51 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
make %{?_smp_mflags}
|
2011-01-17 16:24:54 +00:00
|
|
|
|
|
|
|
%check
|
2019-07-17 05:26:51 +00:00
|
|
|
make test
|
2011-01-17 16:24:54 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2014-12-03 09:32:51 +00:00
|
|
|
%defattr(-,root,root,755)
|
2011-01-17 16:24:54 +00:00
|
|
|
%doc Changes README
|
|
|
|
|
|
|
|
%changelog
|