1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

- Add LICENSE

- Remove unnecessary MASTER_SITE_SUBDIR
- Reformat pkg-descr
- Use single space after WWW:
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-07-06 18:49:31 +00:00
parent 9fdce81a58
commit 58a9f2a8df
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360961
3 changed files with 14 additions and 12 deletions

View File

@ -5,13 +5,15 @@ PORTNAME= Lingua-ZH-WordSegmenter
PORTVERSION= 0.01
CATEGORIES= chinese perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= Lingua
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Simplified Chinese Word Segmentation
USES= perl5
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
USE_PERL5= configure
USES= perl5
.include <bsd.port.mk>

View File

@ -1,13 +1,13 @@
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 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
(http://search.cpan.org/~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.
(http://search.cpan.org/~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.
WWW: http://search.cpan.org/dist/Lingua-ZH-WordSegmenter/
WWW: http://search.cpan.org/dist/Lingua-ZH-WordSegmenter/

View File

@ -1,7 +1,7 @@
%%PERL5_MAN3%%/Lingua::ZH::WordSegmenter.3.gz
%%SITE_PERL%%/Lingua/ZH/WordSegmenter.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/WordSegmenter/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/WordSegmenter
%%PERL5_MAN3%%/Lingua::ZH::WordSegmenter.3.gz
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH/WordSegmenter
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/ZH
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua
@dirrmtry %%SITE_PERL%%/Lingua/ZH