首先安装python;这里最好使用python2.7.3,否则若使用高版本,使用nltk时会出现问题
安装nltk将要用到的YAML:
Ddownload and Installation
The current stable release of PyYAML: 3.10.
Download links:
Unpack the archive and install the package by executing
$ python setup.py install
If you want to use LibYAML bindings, you need to download and install LibYAML. Then you may install the bindings by executing
$ python setup.py --with-libyaml install
The source distribution includes a comprehensive test suite. To run the tests, type
$ python setup.py test
You may check out the latest development code of PyYAML from the Subversion repository http://svn.pyyaml.org/pyyaml/trunk
$ svn checkout http://svn.pyyaml.org/pyyaml/trunk pyyaml-trunk
安装nltk:
下载nltk
安装:python setup.py install