Parse a text and put tags (here <p>
and </p>
) to mark the beginning and the end of each sentence, title, etc...
-
You can modify the source file at the 11th line of the code :
- By default, "descartes.txt" will be read.
-
You can also change the destination file at line 13 :
- By default it will be named "dest.xml".
TODO : add exceptions for certain strings ('Dr.', 'M.', etc...), and multiple line feed.