![]() | 差别 |
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
zh:notes:install_brown [2017/09/29 16:48] 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) | ||
- | ===== 下载并安装 ===== | + | ===== Install gcc ===== |
- | <code> | + | By default, gcc is not installed in CentOS. |
- | wget https://github.com/percyliang/brown-cluster/archive/master.zip | + | <code bash> |
- | unzip master | + | > yum install gcc-c++ |
- | mv brown-cluster-master brown-cluster | + | |
- | cd brown-cluster | + | |
- | make | + | |
</code> | </code> | ||
+ | ===== Download and Install ===== | ||
+ | <code bash> | ||
+ | > wget https://github.com/percyliang/brown-cluster/archive/master.zip | ||
+ | > unzip master | ||
+ | > mv brown-cluster-master brown-cluster | ||
+ | > rm -f master.zip | ||
+ | > cd brown-cluster | ||
+ | > make | ||
+ | </code> | ||
+ | |||
+ | ==== Usage ==== | ||
+ | This is an example. The words in the file <color red>input.txt</red> will be grouped into 50 clusters. | ||
+ | <code bash> | ||
+ | > ./wcluster --text input.txt --c 50 | ||
+ | </code> | ||
+ | |||
+ | ~~DISCUSSION:closed~~ |