
October 10th, 2012, 02:26 AM
|
|
Contributing User
|
|
Join Date: Jul 2007
Location: Joensuu, Finland
|
|
Quote: | Originally Posted by b49P23TIvg I can't figure out why the book author would want to remove punctuation from a sentence, |
Really? I can think of several reasons  That’s the way you begin when you want to read a text into a corpus of some kind.
I think the original script was meant the parse the text into words sentence by sentence, and that’s why periods are handled specially. Ugly coding though.
__________________
My armada: openSUSE 12.3 (home desktop, laptop, work desktop), Ubuntu 12.04 LTS (mini laptop), Debian GNU/Linux 7.0 (server), Mythbuntu 12.04 LTS (HTPC), Bodhi Linux 2.0 & Windows 7 Ultimate (test desktop), FreeBSD 9.1 (test server)
|