赞
踩
- ## 从nltk中提取所有语料库
- from nltk.book import *
- ## 从nltk中提取演讲语料库
- from nltk.corpus import inaugural
- ## 读取
- inaugural.fileids()
- from nltk.book import *
-
- from nltk.corpus import inaugural
- inaugural.fileids()
- x = inaugural.words('2009-Obama.txt')
- len(x)
- from nltk.corpus import gutenberg
- from nltk.corpus import brown
- from nltk.corpus import reuters
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。