nltk function
来源:互联网 发布:编程软件图标 编辑:程序博客网 时间:2024/05/22 15:43
1.Getting started with NLTK(PYTHON)
import nltk
nltk.download()
2. Searching Text
text.concordance("a") word to be searched
text.similar("a") words used in the similar context
text.common_contexts(["a","b"]) examine the context shared by two or more words
text.dispersion_plot(["a","b","c"]) plot word density
text.generate() generate random text based on text data
3. Counting Vocabulary
len(text) number of word in a text
set(text) number of word type
text.count frequency of word
0 0
- nltk function
- function summary of nltk in python
- NLTK
- nltk
- 安装NLTK
- 安装NLTK
- NLTK查看
- nltk词性
- nltk应用
- nltk-1
- NLTK下载
- NLTK使用
- nltk学习
- nltk入门
- nltk学习
- nltk练习题
- nltk断句
- nltk入门
- What is 'lr_policy' in caffe?
- Android 反射接口Interface应用
- JavaScript 判断 DOM 何时加载完毕
- cocos2dx 源码分析之 CCPoolManager
- 栈和队列之LinekedList(双端队列)
- nltk function
- Mecv中遇见的ie兼容问题
- UIResponder
- Android编码规范
- vimrc
- 关于win10 64位安装 XP 32位注意事项
- 机器学习常见名词
- 由hdu2110总结的背包问题
- 深入理解 Java中的 流 (Stream)