'I'm getting a TypeError: expected string or bytes-like object when using the gutenberg corpus in nltk
section=new_text[100:200]
Tokens=word_tokenize(section)
print(tokens)
I'm trying to tokenize a section of the text. I'm using the 'austen-persuasion.txt' which is found in the gutenberg corpus. Why am I getting this error?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
