python
commak
这个作者很懒,什么都没留下…
展开
-
python与自然语言处理-读书笔记3
The goal of this chapter is to answer the following questions:1.怎么获取本地和网络文本 How can we write programs to access text from local files and from the web, in order to get hold of an unlimited range of...原创 2020-04-14 21:37:32 · 495 阅读 · 0 评论 -
python与自然语言处理-读书笔记2
controlif control structurefor loop >>> sent1 = ['Call', 'me', 'Ishmael', '.']>>> for xyzzy in sent1:... if xyzzy.endswith('l'):... print(xyzzy)...CallIshmael&g...原创 2020-03-30 22:23:48 · 599 阅读 · 0 评论 -
python与自然语言处理1
来源网址本篇-4.3from nltk.book import *搜索文本索引行text1.concordance(“big”)最多展示25个。?如何展示更多??big的其他形式如bigger可否也展示?通配符如何显示相似词语text1.similar(“big”)并不是指相同意思,而是指出现在相同上下文,有点类似于索绪尔还是乔姆斯基说的语言的聚合关系?For...原创 2020-03-24 21:35:37 · 529 阅读 · 0 评论