![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Mar 2005
Posts: 6
Rep Power: 0
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|