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
| System | Port | Version |
|---|---|---|
| MidnightBSD | textproc/scws | 1.2.3 |
| FreeBSD | textproc/scws | 1.2.3 |
| DragonFly | textproc/scws | 1.2.3 |
| HardenedBSD | textproc/scws | 1.2.3 |
| GhostBSD | textproc/scws | 1.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
Required by 1
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
| File | Size | SHA256 |
|---|---|---|
| scws-1.2.3.tar.bz2 | 485903 | 60d50ac3dc42cff3c0b16cb1cfee47d8cb8c8baa142a58bc62854477b81f1af5 |
Master sites 1
- http://www.xunsearch.com/scws/down/
Commit history 1
| Date | Commit | Credits | Log 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]> |