Python Forum
TypeError: expected string or bytes-like object
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TypeError: expected string or bytes-like object
#2
nltk.sent_tokenize is probably returning a list, its expecting a string.
check the result of lambda x: nltk.sent_tokenize(x) independently.
Reply


Messages In This Thread
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

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020