windows环境下搭建python+nltk开发环境
nltk(Natural Language Tookit)实际上是python的一个开发包。对于自然语言处理任务非常有用。
===============================================================================================
NLTK 2.0官网:
http://nltk.org/install.html
===============================================================================================
在windows 32-bit 下的安装步骤如下:
1、Install Python
2、Install Numpy (optional)
3、Install NLTK
4、Install PyYAML
5、Test installation: Start>Python27, then type import nltk
===============================================================================================
1、首先,安装python 2.7
===============================================================================================
2、安装Numpy(可选操作):
===============================================================================================
3、安装NLTK。
===============================================================================================
4、安装PyYAML。
===============================================================================================
5、NLTK数据源下载。
===============================================================================================
6、来一个简单的nltk功能小测试
*** Introductory Examples for the NLTK Book ***
Loading text1, ..., text9 and sent1, ..., sent9
Type the name of the text or sentence to view it.
Type: 'texts()' or 'sents()' to list the materials.
text1: Moby Dick by Herman Melville 1851
text2: Sense and Sensibility by Jane Austen 1811
text3: The Book of Genesis
text4: Inaugural Address Corpus
text5: Chat Corpus
text6: Monty Python and the Holy Grail
text7: Wall Street Journal
text8: Personals Corpus
text9: The Man Who Was Thursday by G . K . Chesterton 1908
===============================================================================================
7、更多功能,
=================