Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-L
perl-Lingua-EN-NamedEntity
perl-Lingua-EN-NamedEntity.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Lingua-EN-NamedEntity.spec of Package perl-Lingua-EN-NamedEntity
# # spec file for package perl-Lingua-EN-NamedEntity # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Lingua-EN-NamedEntity Version: 1.93 Release: 0 %define cpan_name Lingua-EN-NamedEntity Summary: Basic Named Entity Extraction algorithm License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Lingua-EN-NamedEntity/ Source0: http://www.cpan.org/authors/id/R/RU/RUNARB/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(IO::Zlib) BuildRequires: perl(Lingua::Stem::En) Requires: perl(IO::Zlib) Requires: perl(Lingua::Stem::En) %{perl_requires} %description "Named entities" is the NLP jargon for proper nouns which represent people, places, organisations, and so on. This module provides a very simple way of extracting these from a text. If we run the 'extract_entities' routine on a piece of news coverage of recent UK political events, we should expect to see it return a list of hash references looking like this: { entity => 'Mr Howard', class => 'person', scores => { ... }, }, { entity => 'Ministry of Defence', class => 'organisation', ... }, { entity => 'Oxfordshire', class => 'place', ... }, The additional 'scores' hash reference in there breaks down the various possible classes for this entity in an open-ended scale. The hash also includes the number of occurrences for that entity. Naturally, the more text you throw at this, the more accurate it becomes. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor