BSD Ports

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

Simplified Chinese Word Segmentation

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
chinese, perl5

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
MidnightBSDchinese/p5-Lingua-ZH-WordSegmenter0.01_1 newestno data-[email protected]-
FreeBSDchinese/p5-Lingua-ZH-WordSegmenter0.01_1 newestnone known-[email protected]-
DragonFlychinese/p5-Lingua-ZH-WordSegmenter0.01_1 newestnone known-[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:

mport install p5-Lingua-ZH-WordSegmenter

From mports:

cd /usr/mports/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

Dependencies

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