May-06-2019, 08:29 PM
nltk.sent_tokenize
is probably returning a list, its expecting a string.check the result of
lambda x: nltk.sent_tokenize(x)
independently.
TypeError: expected string or bytes-like object
|
|
Messages In This Thread |
TypeError: expected string or bytes-like object - by twinpiques - May-06-2019, 08:19 PM
RE: TypeError: expected string or bytes-like object - by Yoriz - May-06-2019, 08:29 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
convert a list of string+bytes into a list of strings (python 3) | pacscaloupsu | 4 | 10,746 |
Mar-17-2020, 07:21 AM Last Post: markfilan |
|
TypeError: 'Series' object cannot be interpreted as an integer | evelynow | 2 | 17,602 |
Sep-11-2019, 02:43 PM Last Post: timmahoney |
|
Convert 'object' to 'string' | AdWill97 | 1 | 62,353 |
May-06-2019, 08:22 AM Last Post: Yoriz |
|
ValueError: Buffer dtype mismatch, expected 'Python object' but got 'long long' | MaJeFi | 2 | 12,407 |
Mar-20-2019, 06:00 AM Last Post: MaJeFi |
|
TypeError: 'method' object is not subscriptable | ayaz786amd | 1 | 39,199 |
Nov-24-2018, 11:16 AM Last Post: j.crater |