目录

Install Brown Word Clustering Tool

source: https://github.com/percyliang/brown-cluster

Operation System

CentOS 5.8(64 bits)

Install gcc

By default, gcc is not installed in CentOS.

> yum install gcc-c++

Download and Install

> 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

Usage

This is an example. The words in the file <color red>input.txt</red> will be grouped into 50 clusters.

> ./wcluster --text input.txt --c 50