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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | chinese/p5-Lingua-ZH-WordSegmenter | 0.01_1 newest | no data | - | [email protected] | - |
| FreeBSD | chinese/p5-Lingua-ZH-WordSegmenter | 0.01_1 newest | none known | - | [email protected] | - |
| DragonFly | chinese/p5-Lingua-ZH-WordSegmenter | 0.01_1 newest | none known | - | [email protected] | - |
| HardenedBSD | chinese/p5-Lingua-ZH-WordSegmenter | 0.01_1 newest | no data | - | [email protected] | - |
| GhostBSD | chinese/p5-Lingua-ZH-WordSegmenter | 0.01_1 newest | no 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
| File | Size | SHA256 |
|---|---|---|
| Lingua-ZH-WordSegmenter-0.01.tar.gz | 1.227001e+06 | 8be1f370f3c65b933e0e0b8ca1d2d6267a5fd121d25903bdd388ed8be9d9a932 |
Master sites 1
- CPAN