Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks

I need to recognize named entities in a text file. I've noticed that the perl module Lingua::EN::NamedEntity seems to be discontinued. It does not install on Windows both ActivePerl and Strawberry (see also post). Anyone has an (easy to use) alternative to suggest?

Thank you

  • Comment on Named Entity alternative to Lingua::EN::NamedEntity

Replies are listed 'Best First'.
Re: Named Entity alternative to Lingua::EN::NamedEntity
by haukex (Archbishop) on Aug 13, 2017 at 17:22 UTC

      This is the error I am getting (ActivePerl 5.16.3, Windows 10)

      Generating a dmake-style Makefile Writing Makefile for DB_File Writing MYMETA.yml and MYMETA.json cp DB_File.pm blib\lib\DB_File.pm Running Mkbootstrap for DB_File () "C:\Perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "DB_File.bs +" "C:\Perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- DB_Fi +le.bs blib\arch\auto\DB_File\DB_File.bs 644 C:\Perl\site\bin\gcc.exe -c -I/usr/local/BerkeleyDB/include -DNDEB +UG -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITEC +USTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_ +USE_32BIT_TIME_T -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields - +O2 -DVERSION=\"1.840\" -DXS_VERSION=\"1.84\" "-IC:\Perl\ +lib\CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t +version.c version.c:30:16: db.h: No such file or directory dmake.exe: Error code 129, while making 'version.o' PMQS/DB_File-1.840.tar.gz C:\Perl\site\bin\dmake.exe -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Running make for R/RU/RUNARB/Lingua-EN-NamedEntity-1.93.tar.gz Has already been unwrapped into directory C:\Perl\cpan\build\Lingua- +EN-NamedEntity-1.93-SuGRqI CPAN.pm: Building R/RU/RUNARB/Lingua-EN-NamedEntity-1.93.tar.gz Warning: Prerequisite 'DB_File => 0' for 'RUNARB/Lingua-EN-NamedEntity +-1.93.tar.gz' failed when processing 'PMQS/DB_File-1.840.tar.gz' with + 'make => NO'. Continuing, but chances to succeed are limited. cp NamedEntity.pm blib\lib\Lingua\EN\NamedEntity.pm "C:\Perl\bin\perl.exe" ./data/mkdb.pl Can't locate DB_File.pm in @INC (@INC contains: C:/Perl/site/lib C:/Pe +rl/lib .) at ./data/mkdb.pl line 3. BEGIN failed--compilation aborted at ./data/mkdb.pl line 3. dmake.exe: Error code 130, while making 'database' RUNARB/Lingua-EN-NamedEntity-1.93.tar.gz C:\Perl\site\bin\dmake.exe -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible

        That's a problem with the installation of DB_File, not Lingua::EN::NamedEntity. You said earlier you tried on Strawberry Perl, but the release notes indicate that DB_File is already included there as far back as 5.10.1, so what problem did you have there? As for ActivePerl, this page does seem to indicate that there are no PPMs available. It's been way too long since I last used ActivePerl to be able to help there, but I have had good experiences with Strawberry Perl so I would recommend that instead, because it includes all the build tools you need.