![]() |
Issue on text decoding and encoding problem - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Issue on text decoding and encoding problem (/thread-2251.html) |
Issue on text decoding and encoding problem - desul - Mar-02-2017 HELLO, while reading data from the text it is not reading properly as it. Please tell me how can solve it ... sentences = nltk.sent_tokenize(texts.decode('utf-8')) thanks for ur help
RE: ISSUE ON TEXT DECODING AND ENCODING PROBLEM - Ofnuts - Mar-02-2017 Looks like the text contains unicode escapes and is not de-escaped. What is the output of print repr(texts) ?
|