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
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/p5-Text-Language-Guess | 0.02_1 |
| DragonFly | textproc/p5-Text-Language-Guess | 0.02_1 |
| HardenedBSD | textproc/p5-Text-Language-Guess | 0.02_1 |
| GhostBSD | textproc/p5-Text-Language-Guess | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.02_1 | 0.02_1 | 0.02_1 | 0.02_1 | 0.02_1 |
| FreeBSD:14:quarterly | 0.02_1 | 0.02_1 | n/a | 0.02_1 | 0.02_1 |
| FreeBSD:15:latest | 0.02_1 | 0.02_1 | n/a | 0.02_1 | 0.02_1 |
| FreeBSD:15:quarterly | 0.02_1 | 0.02_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.02_1 | 0.02_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 3
p5-Log-Log4perl>=1.0: devel/p5-Log-Log4perlp5-Text-ExtractWords>=0: textproc/p5-Text-ExtractWordsp5-Lingua-StopWords>=0: textproc/p5-Lingua-StopWords
Runtime 3
p5-Log-Log4perl>=1.0: devel/p5-Log-Log4perlp5-Text-ExtractWords>=0: textproc/p5-Text-ExtractWordsp5-Lingua-StopWords>=0: textproc/p5-Lingua-StopWords
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
| File | Size | SHA256 |
|---|---|---|
| Text-Language-Guess-0.02.tar.gz | 5377 | 12ef612c1de0451367d403db73723446b836e2e10adeec5e9386b7baa8ede12f |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.