Sunday, May 24, 2009

Menampilkan data dari chatroom

>>> from nltk.corpus import nps_chat
>>> chatroom = nps_chat.posts('10-19-20s_706posts.xml')
>>> chatroom[123]

10-19-20s_706posts.xml contains 706 posts gathered from the 20s chat room on 10/19/2006.

No comments:

Post a Comment