Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 29th, 2005, 11:16 AM   #11
black_dream
Newbie
 
Join Date: Mar 2005
Posts: 6
Rep Power: 0 black_dream is on a distinguished road
Ok
How can I tell python that you have a text file. In this file, start from the beginning of the first line. Then, if you finy ant " " empty char., count one ane increment the counter whenever you find that empty char. and do the same process for the other line until we get the total number of tokens in the file. Also, whenever you find any of(".", "?","!" ... etc) count the number of tokens of precede it, which is of course the length of that sentence.

--black_dream
black_dream is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:04 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC