Dec-13-2018, 12:31 PM
(This post was last modified: Dec-13-2018, 12:32 PM by pythoncrazy1.)
I noticed that now is not working and i cannot find the error. How would u write it, given the output example up? Probably there is a less messy way , but im struggling since days and is not working.
The main points are that :
- Punctuation such as commas, colons, ecc have their own token
- Punctuation in “Mr.”, “Mrs.”, “Ms.”, and
“Dr.” should not receive its own token
- The word parts “n’t,” “’ll,” “’d,” “’ve,” “’m,” and “’re” get their own token
- Posessives (i.e. “John’s”) should be treated as two tokens, with the second
token starting at the apostrophe.
The main points are that :
- Punctuation such as commas, colons, ecc have their own token
- Punctuation in “Mr.”, “Mrs.”, “Ms.”, and
“Dr.” should not receive its own token
- The word parts “n’t,” “’ll,” “’d,” “’ve,” “’m,” and “’re” get their own token
- Posessives (i.e. “John’s”) should be treated as two tokens, with the second
token starting at the apostrophe.