这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
zh:notes:install_brown [2017/09/29 16:54] pzczxs [下载并安装] |
zh:notes:install_brown [2022/06/30 11:32] (当前版本) pzczxs 讨论状态变化了 |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 安装Brown词聚类工具 ====== | + | ====== Install Brown Word Clustering Tool ====== |
- | 参考:https://github.com/percyliang/brown-cluster | + | source: https://github.com/percyliang/brown-cluster |
- | =====系统环境===== | + | ===== Operation System ===== |
CentOS 5.8(64 bits) | CentOS 5.8(64 bits) | ||
- | ===== 安装g++===== | + | ===== Install gcc ===== |
- | 默认CentOS是不安装g++编译工具的,所以需要先安装该工具 | + | By default, gcc is not installed in CentOS. |
- | <code> | + | <code bash> |
> yum install gcc-c++ | > yum install gcc-c++ | ||
</code> | </code> | ||
- | ===== 下载并安装 ===== | + | ===== Download and Install ===== |
- | <code> | + | <code bash> |
> wget https://github.com/percyliang/brown-cluster/archive/master.zip | > wget https://github.com/percyliang/brown-cluster/archive/master.zip | ||
> unzip master | > unzip master | ||
> mv brown-cluster-master brown-cluster | > mv brown-cluster-master brown-cluster | ||
+ | > rm -f master.zip | ||
> cd brown-cluster | > cd brown-cluster | ||
> make | > make | ||
</code> | </code> | ||
- | ==== 操作说明 ==== | + | ==== Usage ==== |
- | 将文件input.txt聚成50个簇: | + | This is an example. The words in the file <color red>input.txt</red> will be grouped into 50 clusters. |
- | <code> | + | <code bash> |
- | ./wcluster --text input.txt --c 50 | + | > ./wcluster --text input.txt --c 50 |
</code> | </code> | ||
+ | |||
+ | ~~DISCUSSION:closed~~ |