BSD Ports

textproc/p5-Text-Language-Guess 0.02_1 FreeBSD

Trained module to guess a document's language

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Categories
textproc, perl5
Package size
7.7 KiB, 12.3 KiB installed

Description

Text::Language::Guess guesses a document's language. Its implementation is simple: Using "Text::ExtractWords" and "Lingua::StopWords" from CPAN, it determines how many of the known stopwords the document contains for each language supported by "Lingua::StopWords".

Each word in the document recognized as stopword of a particular language scores one point for this language.

The "language_guess()" function takes a document as a parameter and returns the abbreviation of the language that it is most likely written in.

In the other systems

SystemPortVersion
FreeBSDtextproc/p5-Text-Language-Guess0.02_1
DragonFlytextproc/p5-Text-Language-Guess0.02_1

Install

Binary package:

pkg install p5-Text-Language-Guess

From the ports tree:

cd /usr/ports/textproc/p5-Text-Language-Guess/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Text-Language-Guess>0:textproc/p5-Text-Language-Guess

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.02_10.02_10.02_10.02_10.02_1
FreeBSD:14:quarterly0.02_10.02_1n/a0.02_10.02_1
FreeBSD:15:latest0.02_10.02_1n/a0.02_10.02_1
FreeBSD:15:quarterly0.02_10.02_1n/an/an/a
FreeBSD:16:latest0.02_10.02_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Runtime 3

The full lists below include those, and their dependencies in turn.

Build dependencies 4
Run dependencies 4

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 4
  • %%PERL5_MAN3%%/Text::Language::Guess.3.gz
  • bin/language-guess
  • %%SITE_PERL%%/Text/Language/Guess.pm
  • %%PERL5_MAN1%%/language-guess.1.gz
distinfo 1
FileSizeSHA256
Text-Language-Guess-0.02.tar.gz537712ef612c1de0451367d403db73723446b836e2e10adeec5e9386b7baa8ede12f
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.