BSD Ports

chinese/p5-Lingua-ZH-WordSegmenter 0.01_1 FreeBSD

Simplified Chinese Word Segmentation

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
chinese, perl5
Package size
1044.0 KiB, 2351.0 KiB installed

Description

This is a perl version of simplified Chinese word segmentation.

The algorithm for this segmenter is to search the longest word at each point from both left and right directions, and choose the one with higher frequency product.

The original program is from the CPAN module Lingua::ZH::WordSegment (https://metacpan.org/author/CHENYR) I did the follwing changes: 1) make the interface object oriented; 2) make the internal string into utf8; 3) using sogou's dictionary (http://www.sogou.com/labs/dl/w.html) as the default dictionary.

In the other systems

The newest version among them is 0.01, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
FreeBSDchinese/p5-Lingua-ZH-WordSegmenter0.01_1 newestnone known-[email protected]-
DragonFlychinese/p5-Lingua-ZH-WordSegmenter0.01_1 newestnone known-[email protected]-
MidnightBSDchinese/p5-Lingua-ZH-WordSegmenter0.01_1 newestno data-[email protected]-
HardenedBSDchinese/p5-Lingua-ZH-WordSegmenter0.01_1 newestno data-[email protected]-
GhostBSDchinese/p5-Lingua-ZH-WordSegmenter0.01_1 newestno data-[email protected]-

Install

Binary package:

pkg install p5-Lingua-ZH-WordSegmenter

From the ports tree:

cd /usr/ports/chinese/p5-Lingua-ZH-WordSegmenter/ && make install clean

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

RUN_DEPENDS=	p5-Lingua-ZH-WordSegmenter>0:chinese/p5-Lingua-ZH-WordSegmenter

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.01_10.01_10.01_10.01_10.01_1
FreeBSD:14:quarterly0.01_10.01_1n/a0.01_10.01_1
FreeBSD:15:latest0.01_10.01_1n/a0.01_10.01_1
FreeBSD:15:quarterly0.01_10.01_1n/an/an/a
FreeBSD:16:latest0.01_10.01_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

The Makefile names none itself; they come from USES and USE_*.

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

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Lingua/ZH/WordSegmenter.pm
  • %%PERL5_MAN3%%/Lingua::ZH::WordSegmenter.3.gz
distinfo 1
FileSizeSHA256
Lingua-ZH-WordSegmenter-0.01.tar.gz1.227001e+068be1f370f3c65b933e0e0b8ca1d2d6267a5fd121d25903bdd388ed8be9d9a932
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.