BSD Ports

textproc/scws 1.2.3 MidnightBSD

Simple Chinese word segmentation program and lib

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
47e364b957
License
bsd2
Categories
textproc

Description

SCWS (Simple Chinese Word Segmentation) is a frequency dictionary based Chinese word segmentation engine, it can cut a whole section of the Chinese text into words. Word is the smallest unit of morpheme in Chinese, but in Chinese words are not separated by spaces,so word segmentation is an important step in Chinese language process.SCWS is written in C without other dependencies and accept GBK and UTF-8 encoding for both the Simple Chinese (zh_CN) and the Traditional Chinese (such as zh_TW).

In the other systems

SystemPortVersion
MidnightBSDtextproc/scws1.2.3
FreeBSDtextproc/scws1.2.3
DragonFlytextproc/scws1.2.3
HardenedBSDtextproc/scws1.2.3
GhostBSDtextproc/scws1.2.3

Install

Binary package:

mport install scws

From mports:

cd /usr/mports/textproc/scws && make install clean

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

RUN_DEPENDS=	scws>0:textproc/scws
LIB_DEPENDS=	libscws.so:textproc/scws

Dependencies

Configuration

No options to configure.

USES
gmake libtool:keepla tar:bzip2
Service scripts
none

Files

pkg-plist 19
  • bin/scws
  • bin/scws-gen-dict
  • etc/scws/rules.ini
  • etc/scws/rules.utf8.ini
  • etc/scws/rules_cht.utf8.ini
  • include/scws/charset.h
  • include/scws/crc32.h
  • include/scws/darray.h
  • include/scws/pool.h
  • include/scws/rule.h
  • include/scws/scws.h
  • include/scws/version.h
  • include/scws/xdb.h
  • include/scws/xdict.h
  • include/scws/xtree.h
  • lib/libscws.la
  • lib/libscws.so
  • lib/libscws.so.1
  • lib/libscws.so.1.1.0
distinfo 1
FileSizeSHA256
scws-1.2.3.tar.bz248590360d50ac3dc42cff3c0b16cb1cfee47d8cb8c8baa142a58bc62854477b81f1af5
Master sites 1
  • http://www.xunsearch.com/scws/down/

Commit history 1

DateCommitCreditsLog message
47e364b957 Lucas Holt textproc/scws: add SCWS 1.2.3
Import the Chinese word segmentation library and its command-line tools. AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>