Loading your own Corpus
If you have a collection of text files that you would like to access using
the above methods, you can easily load them with the help of NLTK's
PlaintextCorpusReader as follows:
http://nltk.googlecode.com/svn/trunk/doc/book/ch01.html - 0 views
-
We can count how often a word occurs in a tex
-
Adding two lists creates a new list
-
count the occurrences of a particular word using text1.count('heaven')
- ...18 more annotations...
1 - 3 of 3
Showing 20▼ items per page