first script
parent
bcc6f2b8b4
commit
81d03d22f2
@ -0,0 +1 @@
|
|||||||
|
venv/
|
@ -0,0 +1,8 @@
|
|||||||
|
import nltk
|
||||||
|
|
||||||
|
f=open('my-file.txt','r')
|
||||||
|
raw=f.read()
|
||||||
|
tokens = nltk.word_tokenize(raw)
|
||||||
|
faceapp = nltk.Text(tokens)
|
||||||
|
|
||||||
|
faceapp.concordance('you')
|
Loading…
Reference in New Issue