CentOS 5.8(64 bits)
By default, gcc is not installed in CentOS.
> yum install gcc-c++
> 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
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
评论