首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Ubuntu 12.04上NLTK的安装

2012-09-25 
Ubuntu 12.04下NLTK的安装安装NLTK之前,先用一下apt-cache search命令搜索一下NLTK包在软件源中具体的名字

Ubuntu 12.04下NLTK的安装

安装NLTK之前,先用一下apt-cache search命令搜索一下NLTK包在软件源中具体的名字:

?

$ apt-cache search nltk    #搜索软件包

?

?python-nltk- Python libraries for natural language processing

?

?

$ apt-cache show python-nltk   #显示版本信息/大小等

Package:python-nltk

?

$ apt-cache depends python-nltk #了解具体依赖的包

$ sudo apt-get install python-nltk #安装nltk

$ sudo apt-get install python-numpy

?将会安装下列额外的软件包:

?

$ sudo apt-get install python-matplotlib #画图表要用的

$ sudo apt-get install prover9

$ sudo apt-get install python-scipy #俺跑MaxentClassifier要用的

?将会安装下列额外的软件包:

?

热点排行